Class: Amdapi::Call
- Inherits:
-
Object
- Object
- Amdapi::Call
- Defined in:
- lib/amdapi/objects/call.rb
Instance Attribute Summary collapse
-
#agent_id ⇒ Object
readonly
Returns the value of attribute agent_id.
-
#call_info ⇒ Object
readonly
Returns the value of attribute call_info.
-
#call_uuid ⇒ Object
readonly
Returns the value of attribute call_uuid.
-
#client_id ⇒ Object
readonly
Returns the value of attribute client_id.
-
#customer_id ⇒ Object
readonly
Returns the value of attribute customer_id.
Instance Method Summary collapse
-
#initialize(attr = {}, call_uuid: "", token: "") ⇒ Call
constructor
A new instance of Call.
- #inspect ⇒ Object
Constructor Details
#initialize(attr = {}, call_uuid: "", token: "") ⇒ Call
Returns a new instance of Call.
7 8 9 10 11 12 13 14 |
# File 'lib/amdapi/objects/call.rb', line 7 def initialize(attr = {}, call_uuid: "", token: "") @call_uuid = call_uuid @token = token @client_id = attr["client_id"] @agent_id = attr["agent_id"] @customer_id = attr["customer_id"] @call_info = attr["call_info"] end |
Instance Attribute Details
#agent_id ⇒ Object (readonly)
Returns the value of attribute agent_id.
5 6 7 |
# File 'lib/amdapi/objects/call.rb', line 5 def agent_id @agent_id end |
#call_info ⇒ Object (readonly)
Returns the value of attribute call_info.
5 6 7 |
# File 'lib/amdapi/objects/call.rb', line 5 def call_info @call_info end |
#call_uuid ⇒ Object (readonly)
Returns the value of attribute call_uuid.
5 6 7 |
# File 'lib/amdapi/objects/call.rb', line 5 def call_uuid @call_uuid end |
#client_id ⇒ Object (readonly)
Returns the value of attribute client_id.
5 6 7 |
# File 'lib/amdapi/objects/call.rb', line 5 def client_id @client_id end |
#customer_id ⇒ Object (readonly)
Returns the value of attribute customer_id.
5 6 7 |
# File 'lib/amdapi/objects/call.rb', line 5 def customer_id @customer_id end |
Instance Method Details
#inspect ⇒ Object
16 17 18 19 20 |
# File 'lib/amdapi/objects/call.rb', line 16 def inspect "#<Amdapi::Client call_uuid=#{call_uuid} client_id=#{client_id || client_id.inspect} " \ "agent_id=#{agent_id || agent_id.inspect} " \ "customer_id=#{customer_id || customer_id.inspect}>" end |