Class: SimpleJsonApi::Association

Inherits:
Struct
  • Object
show all
Defined in:
lib/simple_json_api/association.rb

Overview

Wrapper for a linked association

Instance Attribute Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



4
5
6
# File 'lib/simple_json_api/association.rb', line 4

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/simple_json_api/association.rb', line 4

def name
  @name
end

#polymorphicObject

Returns the value of attribute polymorphic

Returns:

  • (Object)

    the current value of polymorphic



4
5
6
# File 'lib/simple_json_api/association.rb', line 4

def polymorphic
  @polymorphic
end

#serializerObject

Returns the value of attribute serializer

Returns:

  • (Object)

    the current value of serializer



4
5
6
# File 'lib/simple_json_api/association.rb', line 4

def serializer
  @serializer
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



4
5
6
# File 'lib/simple_json_api/association.rb', line 4

def type
  @type
end