Class: TwilioRubyWrapper::Call
- Inherits:
-
Object
- Object
- TwilioRubyWrapper::Call
- Defined in:
- lib/twilio_ruby_wrapper/call.rb
Instance Attribute Summary collapse
-
#account_sid ⇒ Object
readonly
Returns the value of attribute account_sid.
-
#answered_by ⇒ Object
readonly
Returns the value of attribute answered_by.
-
#call_instance ⇒ Object
readonly
Returns the value of attribute call_instance.
-
#caller_name ⇒ Object
readonly
Returns the value of attribute caller_name.
-
#date_created ⇒ Object
readonly
Returns the value of attribute date_created.
-
#date_updated ⇒ Object
readonly
Returns the value of attribute date_updated.
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#end_time ⇒ Object
readonly
Returns the value of attribute end_time.
-
#forwarded_from ⇒ Object
readonly
Returns the value of attribute forwarded_from.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#from_formatted ⇒ Object
readonly
Returns the value of attribute from_formatted.
-
#parent_call_sid ⇒ Object
readonly
Returns the value of attribute parent_call_sid.
-
#phone_number_sid ⇒ Object
readonly
Returns the value of attribute phone_number_sid.
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#price_unit ⇒ Object
readonly
Returns the value of attribute price_unit.
-
#sid ⇒ Object
readonly
Returns the value of attribute sid.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#to_formatted ⇒ Object
readonly
Returns the value of attribute to_formatted.
Instance Method Summary collapse
-
#initialize(twilio_call_instance) ⇒ Call
constructor
A new instance of Call.
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.account_sid @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_sid ⇒ Object (readonly)
Returns the value of attribute account_sid.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/call.rb', line 3 def account_sid @account_sid end |
#answered_by ⇒ Object (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_instance ⇒ Object (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_name ⇒ Object (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_created ⇒ Object (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_updated ⇒ Object (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 |
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/call.rb', line 3 def direction @direction end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/call.rb', line 3 def duration @duration end |
#end_time ⇒ Object (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_from ⇒ Object (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 |
#from ⇒ Object (readonly)
Returns the value of attribute from.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/call.rb', line 3 def from @from end |
#from_formatted ⇒ Object (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_sid ⇒ Object (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_sid ⇒ Object (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 |
#price ⇒ Object (readonly)
Returns the value of attribute price.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/call.rb', line 3 def price @price end |
#price_unit ⇒ Object (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 |
#sid ⇒ Object (readonly)
Returns the value of attribute sid.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/call.rb', line 3 def sid @sid end |
#start_time ⇒ Object (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 |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/call.rb', line 3 def status @status end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/call.rb', line 3 def to @to end |
#to_formatted ⇒ Object (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 |