Class: LDA::Resources::Filings
- Inherits:
-
Base
- Object
- Base
- LDA::Resources::Filings
show all
- Defined in:
- lib/lda_gov/resources/filings.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#all_filings(**params) ⇒ Object
18
19
20
|
# File 'lib/lda_gov/resources/filings.rb', line 18
def all_filings(**params)
client.all('filings/', params)
end
|
#by_registrant_and_client(registrant_name:, client_name:, **params) ⇒ Object
26
27
28
|
# File 'lib/lda_gov/resources/filings.rb', line 26
def by_registrant_and_client(registrant_name:, client_name:, **params)
get('filings/', params.merge(registrant_name: registrant_name, client_name: client_name))
end
|
#each_page(**params) ⇒ Object
14
15
16
|
# File 'lib/lda_gov/resources/filings.rb', line 14
def each_page(**params, &)
client.paginate('filings/', params, &)
end
|
#find(filing_uuid) ⇒ Object
10
11
12
|
# File 'lib/lda_gov/resources/filings.rb', line 10
def find(filing_uuid)
get("filings/#{filing_uuid}/")
end
|
#list(**params) ⇒ Object
6
7
8
|
# File 'lib/lda_gov/resources/filings.rb', line 6
def list(**params)
get('filings/', params)
end
|
#quarterly(year:, quarter:, **params) ⇒ Object
22
23
24
|
# File 'lib/lda_gov/resources/filings.rb', line 22
def quarterly(year:, quarter:, **params)
get('filings/', params.merge(filing_year: year, filing_period: "Q#{quarter}"))
end
|