Class: Bitflyer::Realtime::Client
- Inherits:
-
Object
- Object
- Bitflyer::Realtime::Client
- Defined in:
- lib/bitflyer/realtime/client.rb
Instance Attribute Summary collapse
-
#last_ping_at ⇒ Object
Returns the value of attribute last_ping_at.
-
#last_pong_at ⇒ Object
Returns the value of attribute last_pong_at.
-
#ping_interval ⇒ Object
Returns the value of attribute ping_interval.
-
#ping_timeout ⇒ Object
Returns the value of attribute ping_timeout.
-
#websocket_client ⇒ Object
Returns the value of attribute websocket_client.
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
22 23 24 |
# File 'lib/bitflyer/realtime/client.rb', line 22 def initialize @websocket_client = Bitflyer::Realtime::WebSocketClient.new(host: SOCKET_HOST) end |
Instance Attribute Details
#last_ping_at ⇒ Object
Returns the value of attribute last_ping_at.
14 15 16 |
# File 'lib/bitflyer/realtime/client.rb', line 14 def last_ping_at @last_ping_at end |
#last_pong_at ⇒ Object
Returns the value of attribute last_pong_at.
14 15 16 |
# File 'lib/bitflyer/realtime/client.rb', line 14 def last_pong_at @last_pong_at end |
#ping_interval ⇒ Object
Returns the value of attribute ping_interval.
14 15 16 |
# File 'lib/bitflyer/realtime/client.rb', line 14 def ping_interval @ping_interval end |
#ping_timeout ⇒ Object
Returns the value of attribute ping_timeout.
14 15 16 |
# File 'lib/bitflyer/realtime/client.rb', line 14 def ping_timeout @ping_timeout end |
#websocket_client ⇒ Object
Returns the value of attribute websocket_client.
14 15 16 |
# File 'lib/bitflyer/realtime/client.rb', line 14 def websocket_client @websocket_client end |