Class: TwilioResource::Call
- Defined in:
- lib/twilio_resource/call.rb
Overview
Encapsulates a Twilio call resource. Documentation:
Constant Summary collapse
- NOT_DIALED =
0
- IN_PROGRESS =
1
- COMPLETE =
2
Instance Method Summary collapse
-
#status ⇒ Object
Returns the status of the call.
Methods inherited from Base
collection_path, custom_method_collection_url, element_name, element_path, query_string, #save
Instance Method Details
#status ⇒ Object
Returns the status of the call. Can be TwilioResource::Call::NOT_DIALED, TwilioResource::Call::IN_PROGRESS, or TwilioResource::Call::COMPLETE
16 17 18 |
# File 'lib/twilio_resource/call.rb', line 16 def status attributes["status"].to_i if attributes["status"] end |