Class: Bitbot::Trader::Request Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/bitbot/trader/request.rb

Overview

This class is abstract.

Request class for different api methods

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:

  • client (Object)


24
25
26
# File 'lib/bitbot/trader/request.rb', line 24

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (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

Returns:

  • (Object)


14
15
16
# File 'lib/bitbot/trader/request.rb', line 14

def client
  @client
end

Instance Method Details

#callundefined

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.

This method is abstract.

Every request object implements call

Returns:

  • (undefined)

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/bitbot/trader/request.rb', line 36

def call(*)
  raise NotImplementedError
end