Class: SimpleJsonApi::Attribute

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

Overview

Wrapper for an Attribute

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/attribute.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/attribute.rb', line 4

def name
  @name
end