Class: JSONAPI::Consumer::Associations::HasMany::Association
- Inherits:
-
BaseAssociation
- Object
- BaseAssociation
- JSONAPI::Consumer::Associations::HasMany::Association
- Defined in:
- lib/jsonapi/consumer/associations/has_many.rb
Instance Attribute Summary
Attributes inherited from BaseAssociation
Instance Method Summary collapse
Methods inherited from BaseAssociation
#association_class, #from_result_set, #initialize
Constructor Details
This class inherits a constructor from JSONAPI::Consumer::Associations::BaseAssociation
Instance Method Details
#data(url) ⇒ Object
20 21 22 |
# File 'lib/jsonapi/consumer/associations/has_many.rb', line 20 def data(url) query_builder(url) end |
#query_builder(url) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/jsonapi/consumer/associations/has_many.rb', line 13 def query_builder(url) association_class.query_builder.new( association_class, association_class.requestor_class.new(association_class, url) ) end |