Class: Twilio::REST::Events

Inherits:
EventsBase show all
Defined in:
lib/twilio-ruby/rest/events.rb,
lib/twilio-ruby/rest/events/v1.rb,
lib/twilio-ruby/rest/events/v1/sink.rb,
lib/twilio-ruby/rest/events/v1/schema.rb,
lib/twilio-ruby/rest/events/v1/event_type.rb,
lib/twilio-ruby/rest/events/v1/subscription.rb,
lib/twilio-ruby/rest/events/v1/sink/sink_test.rb,
lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb,
lib/twilio-ruby/rest/events/v1/schema/schema_version.rb,
lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from EventsBase

#initialize, #to_s, #v1

Methods inherited from Domain

#absolute_url, #initialize, #request

Constructor Details

This class inherits a constructor from Twilio::REST::EventsBase

Instance Method Details

#event_types(type = :unset) ⇒ Twilio::REST::Events::V1::EventTypeInstance, Twilio::REST::Events::V1::EventTypeList

Parameters:

  • type (String) (defaults to: :unset)

    A string that uniquely identifies this Event Type.

Returns:



8
9
10
11
# File 'lib/twilio-ruby/rest/events.rb', line 8

def event_types(type=:unset)
  warn "event_types is deprecated. Use v1.event_types instead."
  self.v1.event_types(type)
end

#schemas(id = :unset) ⇒ Twilio::REST::Events::V1::SchemaInstance, Twilio::REST::Events::V1::SchemaList

Parameters:

  • id (String) (defaults to: :unset)

    The unique identifier of the schema. Each schema can have multiple versions, that share the same id.

Returns:



18
19
20
21
# File 'lib/twilio-ruby/rest/events.rb', line 18

def schemas(id=:unset)
  warn "schemas is deprecated. Use v1.schemas instead."
  self.v1.schemas(id)
end

#sinks(sid = :unset) ⇒ Twilio::REST::Events::V1::SinkInstance, Twilio::REST::Events::V1::SinkList

Parameters:

  • sid (String) (defaults to: :unset)

    A 34 character string that uniquely identifies this Sink.

Returns:



27
28
29
30
# File 'lib/twilio-ruby/rest/events.rb', line 27

def sinks(sid=:unset)
  warn "sinks is deprecated. Use v1.sinks instead."
  self.v1.sinks(sid)
end

#subscriptions(sid = :unset) ⇒ Twilio::REST::Events::V1::SubscriptionInstance, Twilio::REST::Events::V1::SubscriptionList

Parameters:

  • sid (String) (defaults to: :unset)

    A 34 character string that uniquely identifies this Subscription.

Returns:



37
38
39
40
# File 'lib/twilio-ruby/rest/events.rb', line 37

def subscriptions(sid=:unset)
  warn "subscriptions is deprecated. Use v1.subscriptions instead."
  self.v1.subscriptions(sid)
end