Class: Bitbot::Trader::Request Abstract
- Inherits:
-
Object
- Object
- Bitbot::Trader::Request
- Defined in:
- lib/bitbot/trader/request.rb
Overview
Request class for different api methods
Direct Known Subclasses
Providers::Bitstamp::OpenOrdersRequest, Providers::MtGox::AccountInfoRequest, Providers::MtGox::OpenOrdersRequest
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
private
Object that communicates with external API.
Instance Method Summary collapse
-
#call ⇒ undefined
abstract
private
Every request object implements call.
-
#initialize(client) ⇒ undefined
constructor
private
Initializes request object.
Constructor Details
#initialize(client) ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes request object
24 25 26 |
# File 'lib/bitbot/trader/request.rb', line 24 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Object that communicates with external API
14 15 16 |
# File 'lib/bitbot/trader/request.rb', line 14 def client @client end |
Instance Method Details
#call ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Every request object implements call
36 37 38 |
# File 'lib/bitbot/trader/request.rb', line 36 def call(*) raise NotImplementedError end |