Class: Trello::AssociationFetcher::HasMany
- Inherits:
-
Object
- Object
- Trello::AssociationFetcher::HasMany
- Defined in:
- lib/trello/association_fetcher/has_many.rb,
lib/trello/association_fetcher/has_many/fetch.rb,
lib/trello/association_fetcher/has_many/params.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #fetch(filter_params) ⇒ Object
-
#initialize(model, name, options) ⇒ HasMany
constructor
A new instance of HasMany.
Constructor Details
#initialize(model, name, options) ⇒ HasMany
9 10 11 12 13 |
# File 'lib/trello/association_fetcher/has_many.rb', line 9 def initialize(model, name, ) @model = model @name = name = end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
7 8 9 |
# File 'lib/trello/association_fetcher/has_many.rb', line 7 def model @model end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/trello/association_fetcher/has_many.rb', line 7 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/trello/association_fetcher/has_many.rb', line 7 def end |
Instance Method Details
#fetch(filter_params) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/trello/association_fetcher/has_many.rb', line 15 def fetch(filter_params) params = Params.new( association_owner: model, association_name: name, association_options: , filter: filter_params ) Fetch.execute(params) end |