class

Twilio::Call

Inherits OpenApi::Json / OpenApi::Validatable / JSON::Serializable::Unmapped / JSON::Serializable / Reference / Object

Constants

MAX_LENGTH_FOR_ACCOUNT_SID = 34
MAX_LENGTH_FOR_GROUP_SID = 34
MAX_LENGTH_FOR_PARENT_CALL_SID = 34
MAX_LENGTH_FOR_PHONE_NUMBER_SID = 34
MAX_LENGTH_FOR_SID = 34
MAX_LENGTH_FOR_TRUNK_SID = 34
MIN_LENGTH_FOR_ACCOUNT_SID = 34
MIN_LENGTH_FOR_GROUP_SID = 34
MIN_LENGTH_FOR_PARENT_CALL_SID = 34
MIN_LENGTH_FOR_PHONE_NUMBER_SID = 34
MIN_LENGTH_FOR_SID = 34
MIN_LENGTH_FOR_TRUNK_SID = 0
PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
PATTERN_FOR_GROUP_SID = /^GP[0-9a-fA-F]{32}$/
PATTERN_FOR_PARENT_CALL_SID = /^CA[0-9a-fA-F]{32}$/
PATTERN_FOR_PHONE_NUMBER_SID = /^PN[0-9a-fA-F]{32}$/
PATTERN_FOR_SID = /^CA[0-9a-fA-F]{32}$/
PATTERN_FOR_TRUNK_SID = /^TK[0-9a-fA-F]{32}$|^$/

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, account_sid : String | Nil = nil, answered_by : String | Nil = nil, api_version : String | Nil = nil, caller_name : String | Nil = nil, date_created : Time | Nil = nil, date_updated : Time | Nil = nil, direction : String | Nil = nil, duration : String | Nil = nil, end_time : Time | Nil = nil, forwarded_from : String | Nil = nil, from : String | Nil = nil, from_formatted : String | Nil = nil, group_sid : String | Nil = nil, parent_call_sid : String | Nil = nil, phone_number_sid : String | Nil = nil, price : String | Nil = nil, price_unit : String | Nil = nil, queue_time : String | Nil = nil, sid : String | Nil = nil, start_time : Time | Nil = nil, status : Twilio::CallEnumStatus | Nil = nil, subresource_uris : Hash(String, String) | Nil = nil, to : String | Nil = nil, to_formatted : String | Nil = nil, trunk_sid : String | Nil = nil, uri : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

account_sid

The SID of the Account that created this resource

Source
account_sid=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] account_sid Object to be assigned

Source
account_sid_present=(account_sid_present : Bool)
Source
account_sid_present?
Source
answered_by

Either human or machine if this call was initiated with answering machine detection. Empty otherwise.

Source
answered_by=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] answered_by Object to be assigned

Source
answered_by_present=(answered_by_present : Bool)
Source
answered_by_present?
Source
api_version

The API Version used to create the call

Source
api_version=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] api_version Object to be assigned

Source
api_version_present=(api_version_present : Bool)
Source
api_version_present?
Source
caller_name

The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty.

Source
caller_name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] caller_name Object to be assigned

Source
caller_name_present=(caller_name_present : Bool)
Source
caller_name_present?
Source
date_created

The RFC 2822 date and time in GMT that this resource was created

Source
date_created=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] date_created Object to be assigned

Source
date_created_present=(date_created_present : Bool)
Source
date_created_present?
Source
date_updated

The RFC 2822 date and time in GMT that this resource was last updated

Source
date_updated=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] date_updated Object to be assigned

Source
date_updated_present=(date_updated_present : Bool)
Source
date_updated_present?
Source
direction

A string describing the direction of the call. inbound for inbound calls, outbound-api for calls initiated via the REST API or outbound-dial for calls initiated by a Dial verb.

Source
direction=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] direction Object to be assigned

Source
direction_present=(direction_present : Bool)
Source
direction_present?
Source
duration

The length of the call in seconds.

Source
duration=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] duration Object to be assigned

Source
duration_present=(duration_present : Bool)
Source
duration_present?
Source
end_time

The end time of the call. Null if the call did not complete successfully.

Source
end_time=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] end_time Object to be assigned

Source
end_time_present=(end_time_present : Bool)
Source
end_time_present?
Source
forwarded_from

The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty.

Source
forwarded_from=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] forwarded_from Object to be assigned

Source
forwarded_from_present=(forwarded_from_present : Bool)
Source
forwarded_from_present?
Source
from

The phone number, SIP address or Client identifier that made this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as name@company.com. Client identifiers are formatted client:name.

Source
from=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] from Object to be assigned

Source
from_formatted

The calling phone number, SIP address, or Client identifier formatted for display.

Source
from_formatted=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] from_formatted Object to be assigned

Source
from_formatted_present=(from_formatted_present : Bool)
Source
from_formatted_present?
Source
from_present=(from_present : Bool)
Source
from_present?
Source
group_sid

The Group SID associated with this call. If no Group is associated with the call, the field is empty.

Source
group_sid=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] group_sid Object to be assigned

Source
group_sid_present=(group_sid_present : Bool)
Source
group_sid_present?
Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
parent_call_sid

The SID that identifies the call that created this leg.

Source
parent_call_sid=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] parent_call_sid Object to be assigned

Source
parent_call_sid_present=(parent_call_sid_present : Bool)
Source
parent_call_sid_present?
Source
phone_number_sid

If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed.

Source
phone_number_sid=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] phone_number_sid Object to be assigned

Source
phone_number_sid_present=(phone_number_sid_present : Bool)
Source
phone_number_sid_present?
Source
price

The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available.

Source
price=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] price Object to be assigned

Source
price_present=(price_present : Bool)
Source
price_present?
Source
price_unit

The currency in which Price is measured.

Source
price_unit=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] price_unit Object to be assigned

Source
price_unit_present=(price_unit_present : Bool)
Source
price_unit_present?
Source
queue_time

The wait time in milliseconds before the call is placed.

Source
queue_time=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] queue_time Object to be assigned

Source
queue_time_present=(queue_time_present : Bool)
Source
queue_time_present?
Source
sid

The unique string that identifies this resource

Source
sid=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] sid Object to be assigned

Source
sid_present=(sid_present : Bool)
Source
sid_present?
Source
start_time

The start time of the call. Null if the call has not yet been dialed.

Source
start_time=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] start_time Object to be assigned

Source
start_time_present=(start_time_present : Bool)
Source
start_time_present?
Source
status
Source
status=(new_value : Twilio::CallEnumStatus | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned

Source
subresource_uris
Source
subresource_uris=(new_value : Hash(String, String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] subresource_uris Object to be assigned

Source
subresource_uris_present=(subresource_uris_present : Bool)
Source
subresource_uris_present?
Source
to

The phone number, SIP address or Client identifier that received this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as name@company.com. Client identifiers are formatted client:name.

Source
to=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] to Object to be assigned

Source
to_formatted

The phone number, SIP address or Client identifier that received this call. Formatted for display.

Source
to_formatted=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] to_formatted Object to be assigned

Source
to_formatted_present=(to_formatted_present : Bool)
Source
to_formatted_present?
Source
to_present=(to_present : Bool)
Source
to_present?
Source
trunk_sid

The (optional) unique identifier of the trunk resource that was used for this call.

Source
trunk_sid=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] trunk_sid Object to be assigned

Source
trunk_sid_present=(trunk_sid_present : Bool)
Source
trunk_sid_present?
Source
uri

The URI of this resource, relative to https://api.twilio.com

Source
uri=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] uri Object to be assigned

Source
uri_present=(uri_present : Bool)
Source
uri_present?
Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source