Module: StartupStats::Formd::Filings
- Included in:
- Client
- Defined in:
- lib/startupstats/formd/filings.rb
Instance Method Summary collapse
-
#filings(start, limit, industry) ⇒ Array<StartupStats::Filing>
Returns filings.
-
#filings_with_count(start, limit, industry) ⇒ StartupStats::ApiResult
Returns filings.
Instance Method Details
#filings(start, limit, industry) ⇒ Array<StartupStats::Filing>
Returns filings
16 17 18 19 20 21 22 23 |
# File 'lib/startupstats/formd/filings.rb', line 16 def filings( start , limit , industry ) begin result = parse_filings_from_response(:get , "filings", {start: start , limit: limit , industry: industry} ) result.filings rescue StartupStats::Error::Unauthorized => error raise end end |
#filings_with_count(start, limit, industry) ⇒ StartupStats::ApiResult
Returns filings
33 34 35 36 37 38 39 |
# File 'lib/startupstats/formd/filings.rb', line 33 def filings_with_count( start , limit , industry ) begin parse_filings_from_response(:get , "filings", {start: start , limit: limit , industry: industry} ) rescue StartupStats::Error::Unauthorized => error raise end end |