Class: Polygon::Api::Client

Inherits:
Object
  • Object
show all
Includes:
Config, Connection, Endpoints, Request
Defined in:
lib/polygon/api/client.rb

Constant Summary

Constants included from Config

Polygon::Api::Config::ATTRIBUTES

Instance Method Summary collapse

Methods included from Config

#reset!

Methods included from Request

#delete, #get, #post, #put

Methods included from Endpoints

#aggregates, #all_trades, #trades

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



11
12
13
14
15
# File 'lib/polygon/api/client.rb', line 11

def initialize(options = {})
  Config::ATTRIBUTES.each do |key|
    send("#{key}=", options[key] || Polygon::Api.config.send(key))
  end
end