Class: Signalwire::Blade::Subscribe
- Defined in:
- lib/signalwire/blade/message/subscribe.rb
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Subscribe
constructor
Creates a Subscribe message.
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
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 |