Sha256: 018d3626849babeeab637581983ac3fbadb83102588f840eafd3018dbf0feeef

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

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

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

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

        # Versions
        @v1 = nil
      end

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

      ##
      # @param [String] sid A 34 character string that uniquely identifies this Sink.
      # @return [Twilio::REST::Events::V1::SinkInstance] if sid was passed.
      # @return [Twilio::REST::Events::V1::SinkList]
      def sinks(sid=:unset)
        self.v1.sinks(sid)
      end

      ##
      # @param [String] sid A 34 character string that uniquely identifies this
      #   Subscription.
      # @return [Twilio::REST::Events::V1::SubscriptionInstance] if sid was passed.
      # @return [Twilio::REST::Events::V1::SubscriptionList]
      def subscriptions(sid=:unset)
        self.v1.subscriptions(sid)
      end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twilio-ruby-5.40.1 lib/twilio-ruby/rest/events.rb