class Twilio::REST::Events

Public Class Methods

new(twilio) click to toggle source

Initialize the Events Domain

Calls superclass method Twilio::REST::Domain::new
   # File lib/twilio-ruby/rest/events.rb
14 def initialize(twilio)
15   super
16 
17   @base_url = 'https://events.twilio.com'
18   @host = 'events.twilio.com'
19   @port = 443
20 
21   # Versions
22   @v1 = nil
23 end

Public Instance Methods

event_types(type=:unset) click to toggle source

@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]

   # File lib/twilio-ruby/rest/events.rb
35 def event_types(type=:unset)
36   self.v1.event_types(type)
37 end
schemas(id=:unset) click to toggle source

@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]

   # File lib/twilio-ruby/rest/events.rb
44 def schemas(id=:unset)
45   self.v1.schemas(id)
46 end
sinks(sid=:unset) click to toggle source

@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]

   # File lib/twilio-ruby/rest/events.rb
52 def sinks(sid=:unset)
53   self.v1.sinks(sid)
54 end
subscriptions(sid=:unset) click to toggle source

@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]

   # File lib/twilio-ruby/rest/events.rb
61 def subscriptions(sid=:unset)
62   self.v1.subscriptions(sid)
63 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/events.rb
67 def to_s
68   '#<Twilio::REST::Events>'
69 end
v1() click to toggle source

Version v1 of events

   # File lib/twilio-ruby/rest/events.rb
27 def v1
28   @v1 ||= V1.new self
29 end