Class: Signalwire::Blade::Connect

Inherits:
Message
  • Object
show all
Defined in:
lib/signalwire/blade/message/connect.rb

Instance Method Summary collapse

Methods inherited from Message

#build_request, #error?, #error_code, #error_message, from_json, #id, #payload, #to_s

Constructor Details

#initializeConnect

Returns a new instance of Connect.



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/signalwire/blade/message/connect.rb', line 5

def initialize
  @payload = {
    method: 'blade.connect',
    params: {
      version: {
        major: 2,
        minor: 1,
        revision: 0
      },
      agent: "Ruby SDK/#{Signalwire::VERSION}"
    }
  }
end