Class: Bitflyer::Realtime::Client
- Inherits:
-
Object
- Object
- Bitflyer::Realtime::Client
- Extended by:
- Forwardable
- 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(key = nil, secret = nil) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(key = nil, secret = nil) ⇒ Client
Returns a new instance of Client.
27 28 29 |
# File 'lib/bitflyer/realtime/client.rb', line 27 def initialize(key = nil, secret = nil) @websocket_client = Bitflyer::Realtime::WebSocketClient.new(host: SOCKET_HOST, key: key, secret: secret) end |
Instance Attribute Details
#last_ping_at ⇒ Object
Returns the value of attribute last_ping_at.
19 20 21 |
# File 'lib/bitflyer/realtime/client.rb', line 19 def last_ping_at @last_ping_at end |
#last_pong_at ⇒ Object
Returns the value of attribute last_pong_at.
19 20 21 |
# File 'lib/bitflyer/realtime/client.rb', line 19 def last_pong_at @last_pong_at end |
#ping_interval ⇒ Object
Returns the value of attribute ping_interval.
19 20 21 |
# File 'lib/bitflyer/realtime/client.rb', line 19 def ping_interval @ping_interval end |
#ping_timeout ⇒ Object
Returns the value of attribute ping_timeout.
19 20 21 |
# File 'lib/bitflyer/realtime/client.rb', line 19 def ping_timeout @ping_timeout end |
#websocket_client ⇒ Object
Returns the value of attribute websocket_client.
19 20 21 |
# File 'lib/bitflyer/realtime/client.rb', line 19 def websocket_client @websocket_client end |