Class: JSONAPI::Document::Resource::Attributes::Attribute
- Inherits:
-
NameValuePair
- Object
- Item
- NameValuePair
- JSONAPI::Document::Resource::Attributes::Attribute
- Defined in:
- lib/easy/jsonapi/document/resource/attributes/attribute.rb
Overview
An individual attribute in a JSON:API Attributes object
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(name, value, type: String) ⇒ Attribute
constructor
A new instance of Attribute.
Methods inherited from NameValuePair
#name, #name=, #to_h, #to_s, #value, #value=
Methods inherited from Item
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class JSONAPI::Item
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
15 16 17 |
# File 'lib/easy/jsonapi/document/resource/attributes/attribute.rb', line 15 def field @field end |