Class: Oat::Adapters::Siren::Action::Field
- Inherits:
-
Object
- Object
- Oat::Adapters::Siren::Action::Field
- Defined in:
- lib/oat/adapters/siren.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(name) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(name) ⇒ Field
Returns a new instance of Field.
74 75 76 |
# File 'lib/oat/adapters/siren.rb', line 74 def initialize(name) @data = { :name => name } end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
72 73 74 |
# File 'lib/oat/adapters/siren.rb', line 72 def data @data end |