class Twilio::Call
- Twilio::Call
- Reference
- Object
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
twilio/models/call.crConstant Summary
-
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 : JSON::PullParser)
-
.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
Instance Method Summary
-
#==(other : self)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #account_sid : String | Nil
-
#account_sid=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #account_sid_present=(account_sid_present : Bool)
- #account_sid_present? : Bool
- #answered_by : String | Nil
-
#answered_by=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #answered_by_present=(answered_by_present : Bool)
- #answered_by_present? : Bool
- #api_version : String | Nil
-
#api_version=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #api_version_present=(api_version_present : Bool)
- #api_version_present? : Bool
- #caller_name : String | Nil
-
#caller_name=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #caller_name_present=(caller_name_present : Bool)
- #caller_name_present? : Bool
- #date_created : Time | Nil
-
#date_created=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #date_created_present=(date_created_present : Bool)
- #date_created_present? : Bool
- #date_updated : Time | Nil
-
#date_updated=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #date_updated_present=(date_updated_present : Bool)
- #date_updated_present? : Bool
- #direction : String | Nil
-
#direction=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #direction_present=(direction_present : Bool)
- #direction_present? : Bool
- #duration : String | Nil
-
#duration=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #duration_present=(duration_present : Bool)
- #duration_present? : Bool
- #end_time : Time | Nil
-
#end_time=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #end_time_present=(end_time_present : Bool)
- #end_time_present? : Bool
- #forwarded_from : String | Nil
-
#forwarded_from=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #forwarded_from_present=(forwarded_from_present : Bool)
- #forwarded_from_present? : Bool
- #from : String | Nil
-
#from=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #from_formatted : String | Nil
-
#from_formatted=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #from_formatted_present=(from_formatted_present : Bool)
- #from_formatted_present? : Bool
- #from_present=(from_present : Bool)
- #from_present? : Bool
- #group_sid : String | Nil
-
#group_sid=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #group_sid_present=(group_sid_present : Bool)
- #group_sid_present? : Bool
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #parent_call_sid : String | Nil
-
#parent_call_sid=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #parent_call_sid_present=(parent_call_sid_present : Bool)
- #parent_call_sid_present? : Bool
- #phone_number_sid : String | Nil
-
#phone_number_sid=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #phone_number_sid_present=(phone_number_sid_present : Bool)
- #phone_number_sid_present? : Bool
- #price : String | Nil
-
#price=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #price_present=(price_present : Bool)
- #price_present? : Bool
- #price_unit : String | Nil
-
#price_unit=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #price_unit_present=(price_unit_present : Bool)
- #price_unit_present? : Bool
- #queue_time : String | Nil
-
#queue_time=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #queue_time_present=(queue_time_present : Bool)
- #queue_time_present? : Bool
- #sid : String | Nil
-
#sid=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #sid_present=(sid_present : Bool)
- #sid_present? : Bool
- #start_time : Time | Nil
-
#start_time=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #start_time_present=(start_time_present : Bool)
- #start_time_present? : Bool
- #status : Twilio::CallEnumStatus | Nil
-
#status=(new_value : Twilio::CallEnumStatus | Nil)
Custom attribute writer method checking allowed values (enum).
- #subresource_uris : Hash(String, String) | Nil
-
#subresource_uris=(new_value : Hash(String, String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #subresource_uris_present=(subresource_uris_present : Bool)
- #subresource_uris_present? : Bool
- #to : String | Nil
-
#to=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #to_formatted : String | Nil
-
#to_formatted=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #to_formatted_present=(to_formatted_present : Bool)
- #to_formatted_present? : Bool
- #to_present=(to_present : Bool)
- #to_present? : Bool
- #trunk_sid : String | Nil
-
#trunk_sid=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #trunk_sid_present=(trunk_sid_present : Bool)
- #trunk_sid_present? : Bool
- #uri : String | Nil
-
#uri=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #uri_present=(uri_present : Bool)
- #uri_present? : Bool
-
#valid? : Bool
Check to see if the all the properties in the model are valid @return true if the model is valid
Instance methods inherited from module OpenApi::Json
after_initialize
after_initialize,
eql?(o : self)
eql?,
to_hash : Hash(String, JSON::Any)
to_hash,
to_json_any : JSON::Any
to_json_any
Class methods inherited from module OpenApi::Json
build_from_hash(hash : Hash)
build_from_hash,
build_from_json_any(json_any : JSON::Any)
build_from_json_any
Instance methods inherited from module OpenApi::Validatable
list_invalid_properties : Array(String)
list_invalid_properties,
list_invalid_properties_for(key : String) : Array(String)
list_invalid_properties_for,
valid? : Bool
valid?,
validate : Nil
validate
Constructor Detail
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] account_sid Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] answered_by Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] api_version Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] caller_name Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] date_created Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] date_updated Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] direction Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] duration Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] end_time Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] forwarded_from Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] from Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] from_formatted Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] group_sid Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] parent_call_sid Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] phone_number_sid Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] price Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] price_unit Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] queue_time Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] sid Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] start_time Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] subresource_uris Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] to Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] to_formatted Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] trunk_sid Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] uri Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid