Class: JSONAPI::Realizer::Resource::Attribute
- Inherits:
-
Object
- Object
- JSONAPI::Realizer::Resource::Attribute
- Includes:
- ActiveModel::Model
- Defined in:
- lib/jsonapi/realizer/resource/attribute.rb
Instance Attribute Summary collapse
-
#as ⇒ Object
Returns the value of attribute as.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
Instance Method Summary collapse
-
#initialize(**keyword_arguments) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(**keyword_arguments) ⇒ Attribute
Returns a new instance of Attribute.
15 16 17 18 19 |
# File 'lib/jsonapi/realizer/resource/attribute.rb', line 15 def initialize(**keyword_arguments) super(**keyword_arguments) validate! end |
Instance Attribute Details
#as ⇒ Object
Returns the value of attribute as.
9 10 11 |
# File 'lib/jsonapi/realizer/resource/attribute.rb', line 9 def as @as end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/jsonapi/realizer/resource/attribute.rb', line 8 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
7 8 9 |
# File 'lib/jsonapi/realizer/resource/attribute.rb', line 7 def owner @owner end |