Class: Twilio::REST::Notify::V1
- Defined in:
 - 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: CredentialContext, CredentialInstance, CredentialList, CredentialPage, ServiceContext, ServiceInstance, ServiceList, ServicePage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #credentials(sid = :unset) ⇒ Twilio::REST::Notify::V1::CredentialContext, Twilio::REST::Notify::V1::CredentialList
 - 
  
    
      #initialize(domain)  ⇒ V1 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Initialize the V1 version of Notify.
 - #services(sid = :unset) ⇒ Twilio::REST::Notify::V1::ServiceContext, Twilio::REST::Notify::V1::ServiceList
 - 
  
    
      #to_s  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Provide a user friendly representation.
 
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of Notify
      15 16 17 18 19 20  | 
    
      # File 'lib/twilio-ruby/rest/notify/v1.rb', line 15 def initialize(domain) super @version = 'v1' @credentials = nil @services = nil end  | 
  
Instance Method Details
#credentials(sid = :unset) ⇒ Twilio::REST::Notify::V1::CredentialContext, Twilio::REST::Notify::V1::CredentialList
      27 28 29 30 31 32 33 34 35  | 
    
      # File 'lib/twilio-ruby/rest/notify/v1.rb', line 27 def credentials(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @credentials ||= CredentialList.new self else CredentialContext.new(self, sid) end end  | 
  
#services(sid = :unset) ⇒ Twilio::REST::Notify::V1::ServiceContext, Twilio::REST::Notify::V1::ServiceList
      42 43 44 45 46 47 48 49 50  | 
    
      # File 'lib/twilio-ruby/rest/notify/v1.rb', line 42 def services(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @services ||= ServiceList.new self else ServiceContext.new(self, sid) end end  | 
  
#to_s ⇒ Object
Provide a user friendly representation
      54 55 56  | 
    
      # File 'lib/twilio-ruby/rest/notify/v1.rb', line 54 def to_s '<Twilio::REST::Notify::V1>' end  |