Class: Fcoin::RealTime::API
- Inherits:
-
Object
- Object
- Fcoin::RealTime::API
- Includes:
- EndPoint
- Defined in:
- lib/fcoin/realtime/api.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#callbacks ⇒ Object
Returns the value of attribute callbacks.
-
#topics ⇒ Object
Returns the value of attribute topics.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ API
constructor
A new instance of API.
Methods included from EndPoint
#on_candle, #on_depth, #on_hello, #on_ticker, #on_topics, #on_trade
Methods included from WSS
Constructor Details
#initialize(options = {}) ⇒ API
Returns a new instance of API.
24 25 26 27 28 29 30 31 |
# File 'lib/fcoin/realtime/api.rb', line 24 def initialize(={}) = Fcoin..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end self.callbacks = {} self.topics = [] end |
Instance Attribute Details
#callbacks ⇒ Object
Returns the value of attribute callbacks.
9 10 11 |
# File 'lib/fcoin/realtime/api.rb', line 9 def callbacks @callbacks end |
#topics ⇒ Object
Returns the value of attribute topics.
9 10 11 |
# File 'lib/fcoin/realtime/api.rb', line 9 def topics @topics end |