Class: FantasticRobot::Request::SetWebhook

Inherits:
Base
  • Object
show all
Defined in:
lib/fantastic_robot/request/set_webhook.rb

Overview

This object represents a setWebhook request

Instance Attribute Summary collapse

Attributes inherited from Base

#method

Instance Method Summary collapse

Methods inherited from Base

#attributes, #send_request, #to_h

Constructor Details

#initialize(attributes = {}) ⇒ SetWebhook

Returns a new instance of SetWebhook.



10
11
12
13
# File 'lib/fantastic_robot/request/set_webhook.rb', line 10

def initialize(attributes = {})
  super(attributes)
  @method = :setWebhook
end

Instance Attribute Details

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/fantastic_robot/request/set_webhook.rb', line 5

def url
  @url
end