Class: FrederickAPI::V2::Helpers::HasMany::Association
- Inherits:
-
JsonApiClient::Associations::BaseAssociation
- Object
- JsonApiClient::Associations::BaseAssociation
- FrederickAPI::V2::Helpers::HasMany::Association
- Defined in:
- lib/frederick_api/v2/helpers/has_many.rb
Overview
Class used to request data for has_many association
Instance Method Summary collapse
Instance Method Details
#data(url) ⇒ Object
27 28 29 |
# File 'lib/frederick_api/v2/helpers/has_many.rb', line 27 def data(url) query_builder(url) end |
#query_builder(url) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/frederick_api/v2/helpers/has_many.rb', line 20 def query_builder(url) association_class.query_builder.new( association_class, requestor: association_class.requestor_class.new(association_class, url) ) end |