Class: Telnyx::Call
- Inherits:
-
APIResource
- Object
- TelnyxObject
- APIResource
- Telnyx::Call
- Extended by:
- APIOperations::Create, APIOperations::NestedResource
- Defined in:
- lib/telnyx/call.rb
Constant Summary collapse
- ACTIONS =
%w[reject answer client_state_update hangup bridge speak fork_start fork_stop gather_using_audio gather_using_speak playback_start playback_stop record_start record_stop send_dtmf transfer transcription_start transcription_stop record_pause record_resume register gather_stop refer enqueue leave_queue streaming_start streaming_stop gather].freeze
- OBJECT_NAME =
"call".freeze
Instance Attribute Summary
Attributes inherited from APIResource
Instance Method Summary collapse
- #id ⇒ Object
- #id=(val) ⇒ Object
-
#initialize(*args, **opts) ⇒ Call
constructor
A new instance of Call.
Methods included from APIOperations::Create
Methods included from APIOperations::NestedResource
Methods inherited from APIResource
class_name, identified_resource_url, inherited, #refresh, resource_url, #resource_url, retrieve, save_nested_resource
Methods included from APIOperations::Request
Methods inherited from TelnyxObject
#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
#initialize(*args, **opts) ⇒ Call
8 9 10 11 12 13 14 15 |
# File 'lib/telnyx/call.rb', line 8 def initialize(*args, **opts) super opts.each do |k, v| setter = "#{k}=".to_sym next unless respond_to? setter send(setter, v) end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Telnyx::TelnyxObject
Instance Method Details
#id ⇒ Object
17 18 19 |
# File 'lib/telnyx/call.rb', line 17 def id call_control_id if defined? call_control_id end |
#id=(val) ⇒ Object
21 22 23 |
# File 'lib/telnyx/call.rb', line 21 def id=(val) initialize_from({ call_control_id: val }, {}, true) end |