Module: StartupStats::Formd::Filings

Included in:
Client
Defined in:
lib/startupstats/formd/filings.rb

Instance Method Summary collapse

Instance Method Details

#filings(start, limit, industry) ⇒ Array<StartupStats::Filing>

Returns filings

Parameters:

  • start (Integer)

    default is 0

  • limit (Integer)

    default is 100

  • industry (String)

    not required

Returns:

  • (Array<StartupStats::Filing>)

    The requested Filings.

Raises:



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

Parameters:

  • start (Integer)

    default is 0

  • limit (Integer)

    default is 100

  • industry (String)

    not required

Returns:

Raises:



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