Class: MessageBird::Voice::Call

Inherits:
Base
  • Object
show all
Defined in:
lib/messagebird/voice/call.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_flowObject

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_atObject

Returns the value of attribute created_at.



9
10
11
# File 'lib/messagebird/voice/call.rb', line 9

def created_at
  @created_at
end

#destinationObject

Returns the value of attribute destination.



9
10
11
# File 'lib/messagebird/voice/call.rb', line 9

def destination
  @destination
end

#ended_atObject

Returns the value of attribute ended_at.



9
10
11
# File 'lib/messagebird/voice/call.rb', line 9

def ended_at
  @ended_at
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/messagebird/voice/call.rb', line 9

def id
  @id
end

#sourceObject

Returns the value of attribute source.



9
10
11
# File 'lib/messagebird/voice/call.rb', line 9

def source
  @source
end

#statusObject

Returns the value of attribute status.



9
10
11
# File 'lib/messagebird/voice/call.rb', line 9

def status
  @status
end

#updated_atObject

Returns the value of attribute updated_at.



9
10
11
# File 'lib/messagebird/voice/call.rb', line 9

def updated_at
  @updated_at
end

#webhookObject

Returns the value of attribute webhook.



10
11
12
# File 'lib/messagebird/voice/call.rb', line 10

def webhook
  @webhook
end