Class: TwilioResource::Call

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

Overview

Constant Summary collapse

NOT_DIALED =
0
IN_PROGRESS =
1
COMPLETE =
2

Instance Method Summary collapse

Methods inherited from Base

collection_path, custom_method_collection_url, element_name, element_path, query_string, #save

Instance Method Details

#statusObject

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