Class: Bitflyer::Realtime::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/bitflyer/realtime/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

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_atObject

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_atObject

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_intervalObject

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_timeoutObject

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_clientObject

Returns the value of attribute websocket_client.



14
15
16
# File 'lib/bitflyer/realtime/client.rb', line 14

def websocket_client
  @websocket_client
end