Class: Retell::SDK::Unofficial::PhoneCall
- Defined in:
- lib/retell/sdk/unofficial/phone_call.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(client, raw_response) ⇒ PhoneCall
constructor
A new instance of PhoneCall.
- #retrieve ⇒ Object
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
#retrieve ⇒ Object
16 17 18 |
# File 'lib/retell/sdk/unofficial/phone_call.rb', line 16 def retrieve @client.call.retrieve(self) end |