Class: Twilio::REST::Events
- 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/schema/version.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/subscription/subscribed_event.rb
Defined Under Namespace
Classes: V1
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
- #event_types(type = :unset) ⇒ Twilio::REST::Events::V1::EventTypeInstance, Twilio::REST::Events::V1::EventTypeList
-
#initialize(twilio) ⇒ Events
constructor
Initialize the Events Domain.
- #schemas(id = :unset) ⇒ Twilio::REST::Events::V1::SchemaInstance, Twilio::REST::Events::V1::SchemaList
- #sinks(sid = :unset) ⇒ Twilio::REST::Events::V1::SinkInstance, Twilio::REST::Events::V1::SinkList
- #subscriptions(sid = :unset) ⇒ Twilio::REST::Events::V1::SubscriptionInstance, Twilio::REST::Events::V1::SubscriptionList
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#v1 ⇒ Object
Version v1 of events.
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ Events
Initialize the Events Domain
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/twilio-ruby/rest/events.rb', line 14 def initialize(twilio) super @base_url = 'https://events.twilio.com' @host = 'events.twilio.com' @port = 443 # Versions @v1 = nil end |
Instance Method Details
#event_types(type = :unset) ⇒ Twilio::REST::Events::V1::EventTypeInstance, Twilio::REST::Events::V1::EventTypeList
35 36 37 |
# File 'lib/twilio-ruby/rest/events.rb', line 35 def event_types(type=:unset) self.v1.event_types(type) end |
#schemas(id = :unset) ⇒ Twilio::REST::Events::V1::SchemaInstance, Twilio::REST::Events::V1::SchemaList
44 45 46 |
# File 'lib/twilio-ruby/rest/events.rb', line 44 def schemas(id=:unset) self.v1.schemas(id) end |
#sinks(sid = :unset) ⇒ Twilio::REST::Events::V1::SinkInstance, Twilio::REST::Events::V1::SinkList
52 53 54 |
# File 'lib/twilio-ruby/rest/events.rb', line 52 def sinks(sid=:unset) self.v1.sinks(sid) end |
#subscriptions(sid = :unset) ⇒ Twilio::REST::Events::V1::SubscriptionInstance, Twilio::REST::Events::V1::SubscriptionList
61 62 63 |
# File 'lib/twilio-ruby/rest/events.rb', line 61 def subscriptions(sid=:unset) self.v1.subscriptions(sid) end |
#to_s ⇒ Object
Provide a user friendly representation
67 68 69 |
# File 'lib/twilio-ruby/rest/events.rb', line 67 def to_s '#<Twilio::REST::Events>' end |