Class: Twilio::REST::Insights::V1::CallContext::EventInstance
- Inherits:
-
Twilio::REST::InstanceResource
- Object
- Twilio::REST::InstanceResource
- Twilio::REST::Insights::V1::CallContext::EventInstance
- Defined in:
- lib/twilio-ruby/rest/insights/v1/call/event.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The unique SID identifier of the Account.
-
#call_sid ⇒ String
The unique SID identifier of the Call.
-
#carrier_edge ⇒ Hash
Represents the connection between Twilio and our immediate carrier partners.
-
#client_edge ⇒ Hash
Represents the Twilio media gateway for Client calls.
- #edge ⇒ TwilioEdge
-
#group ⇒ String
Event group.
-
#initialize(version, payload, call_sid: nil) ⇒ EventInstance
constructor
Initialize the EventInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
- #level ⇒ Level
-
#name ⇒ String
Event name.
-
#sdk_edge ⇒ Hash
Represents the Voice SDK running locally in the browser or in the Android/iOS application.
-
#sip_edge ⇒ Hash
Represents the Twilio media gateway for SIP interface and SIP trunking calls.
-
#timestamp ⇒ String
Event time.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, call_sid: nil) ⇒ EventInstance
Initialize the EventInstance
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 172 def initialize(version, payload , call_sid: nil) super(version) # Marshaled Properties @properties = { 'timestamp' => payload['timestamp'], 'call_sid' => payload['call_sid'], 'account_sid' => payload['account_sid'], 'edge' => payload['edge'], 'group' => payload['group'], 'level' => payload['level'], 'name' => payload['name'], 'carrier_edge' => payload['carrier_edge'], 'sip_edge' => payload['sip_edge'], 'sdk_edge' => payload['sdk_edge'], 'client_edge' => payload['client_edge'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The unique SID identifier of the Account.
206 207 208 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 206 def account_sid @properties['account_sid'] end |
#call_sid ⇒ String
Returns The unique SID identifier of the Call.
200 201 202 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 200 def call_sid @properties['call_sid'] end |
#carrier_edge ⇒ Hash
Returns Represents the connection between Twilio and our immediate carrier partners. The events here describe the call lifecycle as reported by Twilio’s carrier media gateways.
236 237 238 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 236 def carrier_edge @properties['carrier_edge'] end |
#client_edge ⇒ Hash
Returns Represents the Twilio media gateway for Client calls. The events here describe the call lifecycle as reported by Twilio’s Voice SDK media gateways.
254 255 256 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 254 def client_edge @properties['client_edge'] end |
#edge ⇒ TwilioEdge
212 213 214 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 212 def edge @properties['edge'] end |
#group ⇒ String
Returns Event group.
218 219 220 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 218 def group @properties['group'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
266 267 268 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 266 def inspect "<Twilio.Insights.V1.EventInstance>" end |
#level ⇒ Level
224 225 226 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 224 def level @properties['level'] end |
#name ⇒ String
Returns Event name.
230 231 232 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 230 def name @properties['name'] end |
#sdk_edge ⇒ Hash
Returns Represents the Voice SDK running locally in the browser or in the Android/iOS application. The events here are emitted by the Voice SDK in response to certain call progress events, network changes, or call quality conditions.
248 249 250 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 248 def sdk_edge @properties['sdk_edge'] end |
#sip_edge ⇒ Hash
Returns Represents the Twilio media gateway for SIP interface and SIP trunking calls. The events here describe the call lifecycle as reported by Twilio’s public media gateways.
242 243 244 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 242 def sip_edge @properties['sip_edge'] end |
#timestamp ⇒ String
Returns Event time.
194 195 196 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 194 def @properties['timestamp'] end |
#to_s ⇒ Object
Provide a user friendly representation
260 261 262 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 260 def to_s "<Twilio.Insights.V1.EventInstance>" end |