Class: SimpleJsonApi::Association

Inherits:
Struct
  • Object
show all
Defined in:
lib/simple_json_api.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



20
21
22
# File 'lib/simple_json_api.rb', line 20

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



20
21
22
# File 'lib/simple_json_api.rb', line 20

def name
  @name
end

#polymorphicObject

Returns the value of attribute polymorphic

Returns:

  • (Object)

    the current value of polymorphic



20
21
22
# File 'lib/simple_json_api.rb', line 20

def polymorphic
  @polymorphic
end

#serializerObject

Returns the value of attribute serializer

Returns:

  • (Object)

    the current value of serializer



20
21
22
# File 'lib/simple_json_api.rb', line 20

def serializer
  @serializer
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



20
21
22
# File 'lib/simple_json_api.rb', line 20

def type
  @type
end