Sha256: 6105f7f7760252a08adc9d750f54f267bbb130fd0225e4697904237641509ec1

Contents?: true

Size: 923 Bytes

Versions: 7

Compression:

Stored size: 923 Bytes

Contents

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

module Twilio
  module REST
    class Monitor
      class V1 < Version
        ##
        # Initialize the V1 version of Monitor
        def initialize(domain)
          super
          @version = 'v1'
          @alerts = nil
          @events = nil
        end
        
        def alerts(sid=:unset)
          if sid == :unset
            @alerts ||= AlertList.new self
          else
            AlertContext.new(self, sid)
          end
        end
        
        def events(sid=:unset)
          if sid == :unset
            @events ||= EventList.new self
          else
            EventContext.new(self, sid)
          end
        end
        
        ##
        # Provide a user friendly representation
        def to_s
          #<Twilio::REST::Monitor::V1>
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
twilio-ruby-5.0.0.rc9 lib/twilio-ruby/rest/monitor/v1.rb
twilio-ruby-5.0.0.rc8 lib/twilio-ruby/rest/monitor/v1.rb
twilio-ruby-5.0.0.rc7 lib/twilio-ruby/rest/monitor/v1.rb
twilio-ruby-5.0.0.rc5 lib/twilio-ruby/rest/monitor/v1.rb
twilio-ruby-5.0.0.rc4 lib/twilio-ruby/rest/monitor/v1.rb
twilio-ruby-5.0.0.rc3 lib/twilio-ruby/rest/monitor/v1.rb
twilio-ruby-5.0.0.rc2 lib/twilio-ruby/rest/monitor/v1.rb