Sha256: 3877bbd4c6f25235e19373a26ed65b0a06fed08ddfb35f744bb2c42c99949f29

Contents?: true

Size: 769 Bytes

Versions: 5

Compression:

Stored size: 769 Bytes

Contents

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

module Twilio
  module REST
    class Monitor < Domain
      ##
      # Initialize the Monitor Domain
      def initialize(twilio)
        super

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

        # Versions
        @v1 = nil
      end

      ##
      # Version v1 of monitor
      def v1
        @v1 ||= V1.new self
      end

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

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

      ##
      # Provide a user friendly representation
      def to_s
        '#<Twilio::REST::Monitor>'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twilio-ruby-5.0.0.rc26 lib/twilio-ruby/rest/monitor.rb
twilio-ruby-5.0.0.rc25 lib/twilio-ruby/rest/monitor.rb
twilio-ruby-5.0.0.rc24 lib/twilio-ruby/rest/monitor.rb
twilio-ruby-5.0.0.rc23 lib/twilio-ruby/rest/monitor.rb
twilio-ruby-5.0.0.rc22 lib/twilio-ruby/rest/monitor.rb