Class: KrakenClient::Endpoints::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/kraken_client/endpoints/base.rb

Direct Known Subclasses

Private, Public

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, options = {}) ⇒ Base

Returns a new instance of Base.



7
8
9
10
11
12
# File 'lib/kraken_client/endpoints/base.rb', line 7

def initialize(config, options = {})
  @config  = config
  @options = options

  set_methods
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



5
6
7
# File 'lib/kraken_client/endpoints/base.rb', line 5

def config
  @config
end

#optionsObject

Returns the value of attribute options.



5
6
7
# File 'lib/kraken_client/endpoints/base.rb', line 5

def options
  @options
end

Instance Method Details

#request_managerObject



14
15
16
# File 'lib/kraken_client/endpoints/base.rb', line 14

def request_manager
  @request_manager ||= KrakenClient::Requests::Base.build(config, type)
end