Class: Twilio::REST::Notify

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/notify.rb,
lib/twilio-ruby/rest/notify/v1.rb,
lib/twilio-ruby/rest/notify/v1/service.rb,
lib/twilio-ruby/rest/notify/v1/credential.rb,
lib/twilio-ruby/rest/notify/v1/service/binding.rb,
lib/twilio-ruby/rest/notify/v1/service/notification.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Notify

Initialize the Notify Domain



14
15
16
17
18
19
20
21
22
23
# File 'lib/twilio-ruby/rest/notify.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://notify.twilio.com'
  @host = 'notify.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
end

Instance Method Details

#credentials(sid = :unset) ⇒ Twilio::REST::Notify::V1::CredentialInstance, Twilio::REST::Notify::V1::CredentialList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Credential resource.

Returns:



36
37
38
# File 'lib/twilio-ruby/rest/notify.rb', line 36

def credentials(sid=:unset)
  self.v1.credentials(sid)
end

#services(sid = :unset) ⇒ Twilio::REST::Notify::V1::ServiceInstance, Twilio::REST::Notify::V1::ServiceList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Service resource.

Returns:



45
46
47
# File 'lib/twilio-ruby/rest/notify.rb', line 45

def services(sid=:unset)
  self.v1.services(sid)
end

#to_sObject

Provide a user friendly representation



51
52
53
# File 'lib/twilio-ruby/rest/notify.rb', line 51

def to_s
  '#<Twilio::REST::Notify>'
end

#v1Object

Version v1 of notify



27
28
29
# File 'lib/twilio-ruby/rest/notify.rb', line 27

def v1
  @v1 ||= V1.new self
end