Class: Bitmex::Base
- Inherits:
-
Object
- Object
- Bitmex::Base
- Defined in:
- lib/bitmex/base.rb
Overview
Base class for all Bitmex models
Instance Attribute Summary collapse
-
#rest ⇒ Object
readonly
Returns the value of attribute rest.
-
#websocket ⇒ Object
readonly
Returns the value of attribute websocket.
Instance Method Summary collapse
-
#initialize(rest, websocket = nil) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(rest, websocket = nil) ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/bitmex/base.rb', line 9 def initialize(rest, websocket = nil) @rest = rest @websocket = websocket end |
Instance Attribute Details
#rest ⇒ Object (readonly)
Returns the value of attribute rest.
5 6 7 |
# File 'lib/bitmex/base.rb', line 5 def rest @rest end |
#websocket ⇒ Object (readonly)
Returns the value of attribute websocket.
5 6 7 |
# File 'lib/bitmex/base.rb', line 5 def websocket @websocket end |