Class: Adhearsion::Twilio::Call

Inherits:
Object
  • Object
show all
Defined in:
lib/adhearsion/twilio/call.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(call) ⇒ Call

Returns a new instance of Call.


6
7
8
9
# File 'lib/adhearsion/twilio/call.rb', line 6

def initialize(call)
  self.call = call
  set_call_variables!
end

Instance Attribute Details

#callObject

Returns the value of attribute call


4
5
6
# File 'lib/adhearsion/twilio/call.rb', line 4

def call
  @call
end

#fromObject

Returns the value of attribute from


4
5
6
# File 'lib/adhearsion/twilio/call.rb', line 4

def from
  @from
end

#toObject

Returns the value of attribute to


4
5
6
# File 'lib/adhearsion/twilio/call.rb', line 4

def to
  @to
end

Instance Method Details

#durationObject


15
16
17
# File 'lib/adhearsion/twilio/call.rb', line 15

def duration
  call.duration.to_i
end

#idObject


11
12
13
# File 'lib/adhearsion/twilio/call.rb', line 11

def id
  call.id
end

#variablesObject


19
20
21
# File 'lib/adhearsion/twilio/call.rb', line 19

def variables
  call.variables
end