Class: Signalwire::Blade::Subscribe

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

Instance Method Summary collapse

Methods inherited from Message

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

Constructor Details

#initialize(params = {}) ⇒ Subscribe

Creates a Subscribe message

Parameters:

  • params (Hash) (defaults to: {})

    The “params” portion of the message



8
9
10
11
12
13
# File 'lib/signalwire/blade/message/subscribe.rb', line 8

def initialize(params = {})
  @payload = {
    method: 'blade.subscription',
    params: params
  }
end