Sha256: 1c5dd3b1882bf04e155cd79b044a4a8b43fcd8eee2e290bf7fe4db3c214a806d

Contents?: true

Size: 977 Bytes

Versions: 7

Compression:

Stored size: 977 Bytes

Contents

##
# This code was generated by
# \ / _    _  _|   _  _
#  | (_)\/(_)(_|\/| |(/_  v1.0.0
#       /       /       

module Twilio
  module REST
    class Notifications
      class V1 < Version
        ##
        # Initialize the V1 version of Notifications
        def initialize(domain)
          super
          @version = 'v1'
          @credentials = nil
          @services = nil
        end
        
        def credentials(sid=:unset)
          if sid == :unset
            @credentials ||= CredentialList.new self
          else
            CredentialContext.new(self, sid)
          end
        end
        
        def services(sid=:unset)
          if sid == :unset
            @services ||= ServiceList.new self
          else
            ServiceContext.new(self, sid)
          end
        end
        
        ##
        # Provide a user friendly representation
        def to_s
          '<Twilio::REST::Notifications::V1>'
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
twilio-ruby-5.0.0.rc16 lib/twilio-ruby/rest/notifications/v1.rb
twilio-ruby-5.0.0.rc15 lib/twilio-ruby/rest/notifications/v1.rb
twilio-ruby-5.0.0.rc14 lib/twilio-ruby/rest/notifications/v1.rb
twilio-ruby-5.0.0.rc13 lib/twilio-ruby/rest/notifications/v1.rb
twilio-ruby-5.0.0.rc12 lib/twilio-ruby/rest/notifications/v1.rb
twilio-ruby-5.0.0.rc11 lib/twilio-ruby/rest/notifications/v1.rb
twilio-ruby-5.0.0.rc10 lib/twilio-ruby/rest/notifications/v1.rb