Class: FedgerAPI::Client

Inherits:
Object
  • Object
show all
Includes:
Company, Discover, Geo, News, Stats, Tagged, HTTParty
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

Instance Method Summary collapse

Methods included from Tagged

#tagged_companies, #tagged_fundings

Methods included from Stats

#stats_fundings

Methods included from News

#latest_fundings

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_keyObject (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

#optionsObject (readonly)

Returns the value of attribute options.



21
22
23
# File 'lib/fedger_api/client.rb', line 21

def options
  @options
end