class Twilio::REST::Insights::V1::CallContext::EventInstance
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
Public Class Methods
Initialize the EventInstance
@param [Version] version Version
that contains the resource @param [Hash] payload payload that contains response from Twilio
@param [String] call_sid
The call_sid
@return [EventInstance] EventInstance
Twilio::REST::InstanceResource::new
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 161 def initialize(version, payload, call_sid: nil) 162 super(version) 163 164 # Marshaled Properties 165 @properties = { 166 'timestamp' => payload['timestamp'], 167 'call_sid' => payload['call_sid'], 168 'account_sid' => payload['account_sid'], 169 'edge' => payload['edge'], 170 'group' => payload['group'], 171 'level' => payload['level'], 172 'name' => payload['name'], 173 'carrier_edge' => payload['carrier_edge'], 174 'sip_edge' => payload['sip_edge'], 175 'sdk_edge' => payload['sdk_edge'], 176 'client_edge' => payload['client_edge'], 177 } 178 end
Public Instance Methods
@return [String] The account_sid
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 194 def account_sid 195 @properties['account_sid'] 196 end
@return [String] The call_sid
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 188 def call_sid 189 @properties['call_sid'] 190 end
@return [Hash] The carrier_edge
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 224 def carrier_edge 225 @properties['carrier_edge'] 226 end
@return [Hash] The client_edge
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 242 def client_edge 243 @properties['client_edge'] 244 end
@return [event.TwilioEdge] The edge
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 200 def edge 201 @properties['edge'] 202 end
@return [String] The group
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 206 def group 207 @properties['group'] 208 end
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 254 def inspect 255 "<Twilio.Insights.V1.EventInstance>" 256 end
@return [event.Level] The level
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 212 def level 213 @properties['level'] 214 end
@return [String] The name
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 218 def name 219 @properties['name'] 220 end
@return [Hash] The sdk_edge
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 236 def sdk_edge 237 @properties['sdk_edge'] 238 end
@return [Hash] The sip_edge
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 230 def sip_edge 231 @properties['sip_edge'] 232 end
@return [String] The timestamp
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 182 def timestamp 183 @properties['timestamp'] 184 end
Provide a user friendly representation
# File lib/twilio-ruby/rest/insights/v1/call/event.rb 248 def to_s 249 "<Twilio.Insights.V1.EventInstance>" 250 end