Class: TwilioRubyWrapper::Call

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(twilio_call_instance) ⇒ Call

Returns a new instance of Call.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/twilio_ruby_wrapper/call.rb', line 6

def initialize(twilio_call_instance)
  @call_instance = twilio_call_instance
  @sid = @call_instance.sid
  @parent_call_sid = @call_instance.parent_call_sid
  @account_sid = @call_instance.
  @to = @call_instance.to
  @from = @call_instance.from
  @phone_number_sid = @call_instance.phone_number_sid
  @status = @call_instance.status
  @price_unit = @call_instance.price_unit
  @direction = @call_instance.direction
  @answered_by = @call_instance.answered_by
  @forwarded_from = @call_instance.forwarded_from
  @to_formatted = @call_instance.to_formatted
  @from_formatted = @call_instance.from_formatted
  @caller_name = @call_instance.caller_name
  @duration = @call_instance.duration
  @price = @call_instance.price
  @date_created = @call_instance.date_created
  @date_updated = @call_instance.date_updated
  @start_time = @call_instance.start_time
  @end_time = @call_instance.end_time
end

Instance Attribute Details

#account_sidObject (readonly)

Returns the value of attribute account_sid.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def 
  @account_sid
end

#answered_byObject (readonly)

Returns the value of attribute answered_by.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def answered_by
  @answered_by
end

#call_instanceObject (readonly)

Returns the value of attribute call_instance.



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

def call_instance
  @call_instance
end

#caller_nameObject (readonly)

Returns the value of attribute caller_name.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def caller_name
  @caller_name
end

#date_createdObject (readonly)

Returns the value of attribute date_created.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def date_created
  @date_created
end

#date_updatedObject (readonly)

Returns the value of attribute date_updated.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def date_updated
  @date_updated
end

#directionObject (readonly)

Returns the value of attribute direction.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def direction
  @direction
end

#durationObject (readonly)

Returns the value of attribute duration.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def duration
  @duration
end

#end_timeObject (readonly)

Returns the value of attribute end_time.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def end_time
  @end_time
end

#forwarded_fromObject (readonly)

Returns the value of attribute forwarded_from.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def forwarded_from
  @forwarded_from
end

#fromObject (readonly)

Returns the value of attribute from.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def from
  @from
end

#from_formattedObject (readonly)

Returns the value of attribute from_formatted.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def from_formatted
  @from_formatted
end

#parent_call_sidObject (readonly)

Returns the value of attribute parent_call_sid.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def parent_call_sid
  @parent_call_sid
end

#phone_number_sidObject (readonly)

Returns the value of attribute phone_number_sid.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def phone_number_sid
  @phone_number_sid
end

#priceObject (readonly)

Returns the value of attribute price.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def price
  @price
end

#price_unitObject (readonly)

Returns the value of attribute price_unit.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def price_unit
  @price_unit
end

#sidObject (readonly)

Returns the value of attribute sid.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def sid
  @sid
end

#start_timeObject (readonly)

Returns the value of attribute start_time.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def start_time
  @start_time
end

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def status
  @status
end

#toObject (readonly)

Returns the value of attribute to.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def to
  @to
end

#to_formattedObject (readonly)

Returns the value of attribute to_formatted.



3
4
5
# File 'lib/twilio_ruby_wrapper/call.rb', line 3

def to_formatted
  @to_formatted
end