Class: Retell::SDK::Unofficial::PhoneCall

Inherits:
BaseCall show all
Defined in:
lib/retell/sdk/unofficial/phone_call.rb

Instance Attribute Summary

Attributes inherited from Base

#changed_attributes, #client

Instance Method Summary collapse

Methods inherited from BaseCall

#agent, #analysis, #id, #status, #type

Methods inherited from Base

#[], #[]=, #each, each_attribute, #fetch, inherited, #keys, #to_h, #values, writeable_attributes

Constructor Details

#initialize(client, raw_response) ⇒ PhoneCall

Returns a new instance of PhoneCall.



9
10
11
12
13
14
# File 'lib/retell/sdk/unofficial/phone_call.rb', line 9

def initialize(client, raw_response)
  super(client, raw_response)
  @from_number = raw_response[:from_number]
  @to_number = raw_response[:to_number]
  @direction = raw_response[:direction]
end

Instance Method Details

#retrieveObject



16
17
18
# File 'lib/retell/sdk/unofficial/phone_call.rb', line 16

def retrieve
  @client.call.retrieve(self)
end