Class: Bitmex::Base

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

Overview

Base class for all Bitmex models

Author:

  • Iulian Costan

Direct Known Subclasses

Apikey, Chat, Instrument, Order, Position, Quote, Stats, Trade

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rest, websocket = nil) ⇒ Base

Returns a new instance of Base.

Parameters:



9
10
11
12
# File 'lib/bitmex/base.rb', line 9

def initialize(rest, websocket = nil)
  @rest = rest
  @websocket = websocket
end

Instance Attribute Details

#restObject (readonly)

Returns the value of attribute rest.



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

def rest
  @rest
end

#websocketObject (readonly)

Returns the value of attribute websocket.



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

def websocket
  @websocket
end