Class: Twilio::REST::Insights::V1::CallContext::EventInstance

Inherits:
Twilio::REST::InstanceResource show all
Defined in:
lib/twilio-ruby/rest/insights/v1/call/event.rb

Overview

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 [email protected]

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, call_sid: nil) ⇒ EventInstance

Initialize the EventInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • call_sid (String) (defaults to: nil)

    The call_sid


161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 161

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_sidString

Returns The account_sid.

Returns:

  • (String)

    The account_sid


194
195
196
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 194

def 
  @properties['account_sid']
end

#call_sidString

Returns The call_sid.

Returns:

  • (String)

    The call_sid


188
189
190
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 188

def call_sid
  @properties['call_sid']
end

#carrier_edgeHash

Returns The carrier_edge.

Returns:

  • (Hash)

    The carrier_edge


224
225
226
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 224

def carrier_edge
  @properties['carrier_edge']
end

#client_edgeHash

Returns The client_edge.

Returns:

  • (Hash)

    The client_edge


242
243
244
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 242

def client_edge
  @properties['client_edge']
end

#edgeevent.TwilioEdge

Returns The edge.

Returns:

  • (event.TwilioEdge)

    The edge


200
201
202
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 200

def edge
  @properties['edge']
end

#groupString

Returns The group.

Returns:

  • (String)

    The group


206
207
208
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 206

def group
  @properties['group']
end

#inspectObject

Provide a detailed, user friendly representation


254
255
256
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 254

def inspect
  "<Twilio.Insights.V1.EventInstance>"
end

#levelevent.Level

Returns The level.

Returns:

  • (event.Level)

    The level


212
213
214
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 212

def level
  @properties['level']
end

#nameString

Returns The name.

Returns:

  • (String)

    The name


218
219
220
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 218

def name
  @properties['name']
end

#sdk_edgeHash

Returns The sdk_edge.

Returns:

  • (Hash)

    The sdk_edge


236
237
238
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 236

def sdk_edge
  @properties['sdk_edge']
end

#sip_edgeHash

Returns The sip_edge.

Returns:

  • (Hash)

    The sip_edge


230
231
232
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 230

def sip_edge
  @properties['sip_edge']
end

#timestampString

Returns The timestamp.

Returns:

  • (String)

    The timestamp


182
183
184
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 182

def timestamp
  @properties['timestamp']
end

#to_sObject

Provide a user friendly representation


248
249
250
# File 'lib/twilio-ruby/rest/insights/v1/call/event.rb', line 248

def to_s
  "<Twilio.Insights.V1.EventInstance>"
end