Class: Twilio::REST::Notify
- 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/user.rb,
lib/twilio-ruby/rest/notify/v1/service/binding.rb,
lib/twilio-ruby/rest/notify/v1/service/segment.rb,
lib/twilio-ruby/rest/notify/v1/service/notification.rb,
lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb,
lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb
Defined Under Namespace
Classes: V1
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
- #credentials(sid = :unset) ⇒ Twilio::REST::Notify::V1::CredentialInstance, Twilio::REST::Notify::V1::CredentialList
-
#initialize(twilio) ⇒ Notify
constructor
Initialize the Notify Domain.
- #services(sid = :unset) ⇒ Twilio::REST::Notify::V1::ServiceInstance, Twilio::REST::Notify::V1::ServiceList
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#v1 ⇒ Object
Version v1 of notify.
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ Notify
Initialize the Notify Domain
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/twilio-ruby/rest/notify.rb', line 12 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
33 34 35 |
# File 'lib/twilio-ruby/rest/notify.rb', line 33 def credentials(sid=:unset) self.v1.credentials(sid) end |
#services(sid = :unset) ⇒ Twilio::REST::Notify::V1::ServiceInstance, Twilio::REST::Notify::V1::ServiceList
41 42 43 |
# File 'lib/twilio-ruby/rest/notify.rb', line 41 def services(sid=:unset) self.v1.services(sid) end |
#to_s ⇒ Object
Provide a user friendly representation
47 48 49 |
# File 'lib/twilio-ruby/rest/notify.rb', line 47 def to_s '#<Twilio::REST::Notify>' end |