Sha256: b6c955d5ddd4f95ebd80e13bd30a48a23dab9163c39bd0b44807d9432f0813dc

Contents?: true

Size: 1.9 KB

Versions: 66

Compression:

Stored size: 1.9 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] type A string that uniquely identifies this Event Type.
      # @return [Twilio::REST::Events::V1::EventTypeInstance] if type was passed.
      # @return [Twilio::REST::Events::V1::EventTypeList]
      def event_types(type=:unset)
        self.v1.event_types(type)
      end

      ##
      # @param [String] id The unique identifier of the schema. Each schema can have
      #   multiple versions, that share the same id.
      # @return [Twilio::REST::Events::V1::SchemaInstance] if id was passed.
      # @return [Twilio::REST::Events::V1::SchemaList]
      def schemas(id=:unset)
        self.v1.schemas(id)
      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

66 entries across 66 versions & 1 rubygems

Version Path
twilio-ruby-5.68.0 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.67.3 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.67.2 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.67.1 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.67.0 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.66.2 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.66.1 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.66.0 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.65.1 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.65.0 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.64.0 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.63.1 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.63.0 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.62.0 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.61.2 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.61.1 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.61.0 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.60.0 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.59.0 lib/twilio-ruby/rest/events.rb
twilio-ruby-5.58.3 lib/twilio-ruby/rest/events.rb