Class: SimpleJsonApi::Attribute

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

Overview

Attribute

Instance Attribute Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



28
29
30
# File 'lib/simple_json_api.rb', line 28

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



28
29
30
# File 'lib/simple_json_api.rb', line 28

def name
  @name
end