Class: JSONAPI::Consumer::Associations::HasOne::Association
- Inherits:
-
BaseAssociation
- Object
- BaseAssociation
- JSONAPI::Consumer::Associations::HasOne::Association
- Defined in:
- lib/jsonapi/consumer/associations/has_one.rb
Instance Attribute Summary
Attributes inherited from BaseAssociation
Instance Method Summary collapse
Methods inherited from BaseAssociation
#association_class, #data, #initialize
Constructor Details
This class inherits a constructor from JSONAPI::Consumer::Associations::BaseAssociation
Instance Method Details
#from_result_set(result_set) ⇒ Object
13 14 15 |
# File 'lib/jsonapi/consumer/associations/has_one.rb', line 13 def from_result_set(result_set) result_set.first end |