class Trello::AssociationFetcher::HasMany::Fetch

Attributes

params[R]

Public Class Methods

execute(params) click to toggle source
# File lib/trello/association_fetcher/has_many/fetch.rb, line 6
def execute(params)
  new(params).execute
end
new(params) click to toggle source
# File lib/trello/association_fetcher/has_many/fetch.rb, line 13
def initialize(params)
  @params = params
end

Public Instance Methods

execute() click to toggle source
# File lib/trello/association_fetcher/has_many/fetch.rb, line 17
def execute
  resources = client.find_many(association_class, path, filter_params)

  MultiAssociation.new(association_owner, resources).proxy
end

Private Instance Methods

association_class() click to toggle source
# File lib/trello/association_fetcher/has_many/fetch.rb, line 29
def association_class
  params.association_class
end
association_owner() click to toggle source
# File lib/trello/association_fetcher/has_many/fetch.rb, line 41
def association_owner
  params.association_owner
end
client() click to toggle source
# File lib/trello/association_fetcher/has_many/fetch.rb, line 25
def client
  association_owner.client
end
filter_params() click to toggle source
# File lib/trello/association_fetcher/has_many/fetch.rb, line 37
def filter_params
  params.filter_params
end
path() click to toggle source
# File lib/trello/association_fetcher/has_many/fetch.rb, line 33
def path
  params.fetch_path
end