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
- #call_sid ⇒ String
- #carrier_edge ⇒ Hash
- #client_edge ⇒ Hash
- #edge ⇒ TwilioEdge
- #group ⇒ String
-
#initialize(version, payload, call_sid: nil) ⇒ EventInstance
constructor
Initialize the EventInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
- #level ⇒ Level
- #name ⇒ String
- #sdk_edge ⇒ Hash
- #sip_edge ⇒ Hash
- #timestamp ⇒ String
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, call_sid: nil) ⇒ EventInstance
Initialize the EventInstance
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 173 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
207 208 209 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 207 def account_sid @properties['account_sid'] end |
#call_sid ⇒ String
201 202 203 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 201 def call_sid @properties['call_sid'] end |
#carrier_edge ⇒ Hash
237 238 239 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 237 def carrier_edge @properties['carrier_edge'] end |
#client_edge ⇒ Hash
255 256 257 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 255 def client_edge @properties['client_edge'] end |
#edge ⇒ TwilioEdge
213 214 215 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 213 def edge @properties['edge'] end |
#group ⇒ String
219 220 221 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 219 def group @properties['group'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
267 268 269 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 267 def inspect "<Twilio.Insights.V1.EventInstance>" end |
#level ⇒ Level
225 226 227 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 225 def level @properties['level'] end |
#name ⇒ String
231 232 233 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 231 def name @properties['name'] end |
#sdk_edge ⇒ Hash
249 250 251 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 249 def sdk_edge @properties['sdk_edge'] end |
#sip_edge ⇒ Hash
243 244 245 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 243 def sip_edge @properties['sip_edge'] end |
#timestamp ⇒ String
195 196 197 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 195 def @properties['timestamp'] end |
#to_s ⇒ Object
Provide a user friendly representation
261 262 263 |
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 261 def to_s "<Twilio.Insights.V1.EventInstance>" end |