Class: LDA::Resources::Contributions

Inherits:
Base
  • Object
show all
Defined in:
lib/lda_gov/resources/contributions.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from LDA::Resources::Base

Instance Method Details

#all_contributions(**params) ⇒ Object



18
19
20
# File 'lib/lda_gov/resources/contributions.rb', line 18

def all_contributions(**params)
  client.all('contributions/', params)
end

#each_page(**params) ⇒ Object



14
15
16
# File 'lib/lda_gov/resources/contributions.rb', line 14

def each_page(**params, &)
  client.paginate('contributions/', params, &)
end

#find(contribution_id) ⇒ Object



10
11
12
# File 'lib/lda_gov/resources/contributions.rb', line 10

def find(contribution_id)
  get("contributions/#{contribution_id}/")
end

#list(**params) ⇒ Object



6
7
8
# File 'lib/lda_gov/resources/contributions.rb', line 6

def list(**params)
  get('contributions/', params)
end