Class: MessageBird::Voice::Call
- Defined in:
- lib/messagebird/voice/call.rb
Instance Attribute Summary collapse
-
#call_flow ⇒ Object
Returns the value of attribute call_flow.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#ended_at ⇒ Object
Returns the value of attribute ended_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#source ⇒ Object
Returns the value of attribute source.
-
#status ⇒ Object
Returns the value of attribute status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#webhook ⇒ Object
Returns the value of attribute webhook.
Instance Method Summary collapse
-
#initialize(json) ⇒ Call
constructor
A new instance of Call.
Methods inherited from Base
#map_hash_elements_to_self, #value_to_time
Constructor Details
#initialize(json) ⇒ Call
Returns a new instance of Call.
12 13 14 15 |
# File 'lib/messagebird/voice/call.rb', line 12 def initialize(json) params = json.include?('data') ? json['data'].first : json super(params) end |
Instance Attribute Details
#call_flow ⇒ Object
Returns the value of attribute call_flow.
9 10 11 |
# File 'lib/messagebird/voice/call.rb', line 9 def call_flow @call_flow end |
#created_at ⇒ Object
Returns the value of attribute created_at.
9 10 11 |
# File 'lib/messagebird/voice/call.rb', line 9 def created_at @created_at end |
#destination ⇒ Object
Returns the value of attribute destination.
9 10 11 |
# File 'lib/messagebird/voice/call.rb', line 9 def destination @destination end |
#ended_at ⇒ Object
Returns the value of attribute ended_at.
9 10 11 |
# File 'lib/messagebird/voice/call.rb', line 9 def ended_at @ended_at end |
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/messagebird/voice/call.rb', line 9 def id @id end |
#source ⇒ Object
Returns the value of attribute source.
9 10 11 |
# File 'lib/messagebird/voice/call.rb', line 9 def source @source end |
#status ⇒ Object
Returns the value of attribute status.
9 10 11 |
# File 'lib/messagebird/voice/call.rb', line 9 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
9 10 11 |
# File 'lib/messagebird/voice/call.rb', line 9 def updated_at @updated_at end |
#webhook ⇒ Object
Returns the value of attribute webhook.
10 11 12 |
# File 'lib/messagebird/voice/call.rb', line 10 def webhook @webhook end |