class Twilio::REST::Notify

Public Class Methods

new(twilio) click to toggle source

Initialize the Notify Domain

Calls superclass method Twilio::REST::Domain::new
   # File lib/twilio-ruby/rest/notify.rb
14 def initialize(twilio)
15   super
16 
17   @base_url = 'https://notify.twilio.com'
18   @host = 'notify.twilio.com'
19   @port = 443
20 
21   # Versions
22   @v1 = nil
23 end

Public Instance Methods

credentials(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the Credential

resource.

@return [Twilio::REST::Notify::V1::CredentialInstance] if sid was passed. @return [Twilio::REST::Notify::V1::CredentialList]

   # File lib/twilio-ruby/rest/notify.rb
36 def credentials(sid=:unset)
37   self.v1.credentials(sid)
38 end
services(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the Service

resource.

@return [Twilio::REST::Notify::V1::ServiceInstance] if sid was passed. @return [Twilio::REST::Notify::V1::ServiceList]

   # File lib/twilio-ruby/rest/notify.rb
45 def services(sid=:unset)
46   self.v1.services(sid)
47 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/notify.rb
51 def to_s
52   '#<Twilio::REST::Notify>'
53 end
v1() click to toggle source

Version v1 of notify

   # File lib/twilio-ruby/rest/notify.rb
27 def v1
28   @v1 ||= V1.new self
29 end