class FantasticRobot::Request::SetWebhook
This object represents a setWebhook request
Attributes
url[RW]
Public Class Methods
new(attributes = {})
click to toggle source
Calls superclass method
FantasticRobot::Request::Base::new
# File lib/fantastic_robot/request/set_webhook.rb, line 10 def initialize(attributes = {}) super(attributes) @method = :setWebhook end
Private Instance Methods
https_url()
click to toggle source
Check that the URL is a HTTPS one
# File lib/fantastic_robot/request/set_webhook.rb, line 18 def https_url return false if (url.blank?) unless (url[0,8] == "https://") errors.add :url, "Must be an HTPPS URL." return false end return true end