Class: Believe::Resources::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/believe/resources/client.rb,
lib/believe/resources/client/ws.rb

Defined Under Namespace

Classes: Ws

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Client

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Client.

Parameters:



14
15
16
17
# File 'lib/believe/resources/client.rb', line 14

def initialize(client:)
  @client = client
  @ws = ::Believe::Resources::Client::Ws.new(client: client)
end

Instance Attribute Details

#ws::Believe::Resources::Client::Ws (readonly)

WebSocket endpoints for real-time bidirectional communication - Live match simulation



9
10
11
# File 'lib/believe/resources/client.rb', line 9

def ws
  @ws
end