Class: StartupStats::Formd::Client

Inherits:
Object
  • Object
show all
Includes:
Configurable, Filings, Requestable
Defined in:
lib/startupstats/formd/client.rb

Overview

< StartupStats::Client

Instance Attribute Summary

Attributes included from Configurable

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

Instance Method Summary collapse

Methods included from Filings

#filings, #filings_with_count

Methods included from Requestable

#delete, #get, #post, #put

Methods included from Configurable

#cache_key, #configure, #credentials?, keys, #reset!

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



17
18
19
20
21
22
# File 'lib/startupstats/formd/client.rb', line 17

def initialize( options = {} )
	setup
	StartupStats::Configurable.keys.each do |key|
		instance_variable_set(:"@#{key}", options[key] || instance_variable_get(:"@#{key}"))
	end
end