class MessageBird::Voice::Call
Attributes
call_flow[RW]
created_at[RW]
destination[RW]
ended_at[RW]
id[RW]
source[RW]
status[RW]
updated_at[RW]
webhook[R]
Public Class Methods
new(json)
click to toggle source
Calls superclass method
MessageBird::Base::new
# File lib/messagebird/voice/call.rb, line 12 def initialize(json) params = json.include?('data') ? json['data'].first : json super(params) end
Public Instance Methods
webhook=(webhook)
click to toggle source
# File lib/messagebird/voice/call.rb, line 17 def webhook=(webhook) @webhook = Voice::Webhook.new(webhook) end