Class: FedgerAPI::Client
- Inherits:
-
Object
- Object
- FedgerAPI::Client
- Defined in:
- lib/fedger_api/client.rb,
lib/fedger_api/client/geo.rb,
lib/fedger_api/client/news.rb,
lib/fedger_api/client/stats.rb,
lib/fedger_api/client/tagged.rb,
lib/fedger_api/client/company.rb,
lib/fedger_api/client/discover.rb
Overview
Class provide connection to fedger.io api
Defined Under Namespace
Modules: Company, Discover, Geo, News, Stats, Tagged
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(api_key = nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Tagged
#tagged_companies, #tagged_fundings
Methods included from Stats
Methods included from News
Methods included from Geo
#geo_located_companies, #geo_located_fundings
Methods included from Discover
#discovery, #discovery_companies, #discovery_vertices
Methods included from Company
#company_insights, #company_snapshot, #funding_details, #funding_status, #fundings, #investors, #locations, #peers, #portfolio_companies, #team_details
Constructor Details
#initialize(api_key = nil) ⇒ Client
Returns a new instance of Client.
26 27 28 29 |
# File 'lib/fedger_api/client.rb', line 26 def initialize(api_key = nil) @api_key ||= api_key || ENV['FEDGER_API_KEY'] @options = { query: { apikey: @api_key }, verify: false } end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
21 22 23 |
# File 'lib/fedger_api/client.rb', line 21 def api_key @api_key end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
21 22 23 |
# File 'lib/fedger_api/client.rb', line 21 def @options end |