Module: StartupStats::Formd

Extended by:
Configurable
Defined in:
lib/startupstats.rb,
lib/startupstats/formd/client.rb,
lib/startupstats/formd/filings.rb,
lib/startupstats/formd/models/filing.rb,
lib/startupstats/formd/models/company.rb

Overview

TODO: figure out way to automaticaly generate the following code for each new module/API Client

Defined Under Namespace

Modules: Filings Classes: Client, Company, Filing

Instance Attribute Summary

Attributes included from Configurable

#access_token, #access_token_key, #connection_options, #endpoint, #middleware

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configurable

cache_key, configure, credentials?, keys, reset!

Class Method Details

.clientStartupStats::Formd::Client



16
17
18
19
# File 'lib/startupstats.rb', line 16

def client
	@client = StartupStats::Formd::Client.new(options) unless defined?(@client) && @client.cache_key == options.hash
	@client
end

Instance Method Details

#respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


22
# File 'lib/startupstats.rb', line 22

def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


21
# File 'lib/startupstats.rb', line 21

def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end