class Twilio::Call

Included Modules

Defined in:

twilio/models/call.cr

Constant 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

Instance Method Summary

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

def self.new(pull : JSON::PullParser) #

[View source]
def self.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


[View source]

Instance Method Detail

def ==(other : self) #

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


def account_sid : String | Nil #

[View source]
def account_sid=(new_value : String | Nil) #

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


[View source]
def account_sid_present=(account_sid_present : Bool) #

[View source]
def account_sid_present? : Bool #

[View source]
def answered_by : String | Nil #

[View source]
def answered_by=(new_value : String | Nil) #

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


[View source]
def answered_by_present=(answered_by_present : Bool) #

[View source]
def answered_by_present? : Bool #

[View source]
def api_version : String | Nil #

[View source]
def api_version=(new_value : String | Nil) #

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


[View source]
def api_version_present=(api_version_present : Bool) #

[View source]
def api_version_present? : Bool #

[View source]
def caller_name : String | Nil #

[View source]
def caller_name=(new_value : String | Nil) #

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


[View source]
def caller_name_present=(caller_name_present : Bool) #

[View source]
def caller_name_present? : Bool #

[View source]
def date_created : Time | Nil #

[View source]
def date_created=(new_value : Time | Nil) #

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


[View source]
def date_created_present=(date_created_present : Bool) #

[View source]
def date_created_present? : Bool #

[View source]
def date_updated : Time | Nil #

[View source]
def date_updated=(new_value : Time | Nil) #

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


[View source]
def date_updated_present=(date_updated_present : Bool) #

[View source]
def date_updated_present? : Bool #

[View source]
def direction : String | Nil #

[View source]
def direction=(new_value : String | Nil) #

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


[View source]
def direction_present=(direction_present : Bool) #

[View source]
def direction_present? : Bool #

[View source]
def duration : String | Nil #

[View source]
def duration=(new_value : String | Nil) #

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


[View source]
def duration_present=(duration_present : Bool) #

[View source]
def duration_present? : Bool #

[View source]
def end_time : Time | Nil #

[View source]
def end_time=(new_value : Time | Nil) #

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


[View source]
def end_time_present=(end_time_present : Bool) #

[View source]
def end_time_present? : Bool #

[View source]
def forwarded_from : String | Nil #

[View source]
def forwarded_from=(new_value : String | Nil) #

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


[View source]
def forwarded_from_present=(forwarded_from_present : Bool) #

[View source]
def forwarded_from_present? : Bool #

[View source]
def from : String | Nil #

[View source]
def from=(new_value : String | Nil) #

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


[View source]
def from_formatted : String | Nil #

[View source]
def from_formatted=(new_value : String | Nil) #

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


[View source]
def from_formatted_present=(from_formatted_present : Bool) #

[View source]
def from_formatted_present? : Bool #

[View source]
def from_present=(from_present : Bool) #

[View source]
def from_present? : Bool #

[View source]
def group_sid : String | Nil #

[View source]
def group_sid=(new_value : String | Nil) #

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


[View source]
def group_sid_present=(group_sid_present : Bool) #

[View source]
def group_sid_present? : Bool #

[View source]
def hash(hasher) #

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


def list_invalid_properties : Array(String) #

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


[View source]
def parent_call_sid : String | Nil #

[View source]
def parent_call_sid=(new_value : String | Nil) #

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


[View source]
def parent_call_sid_present=(parent_call_sid_present : Bool) #

[View source]
def parent_call_sid_present? : Bool #

[View source]
def phone_number_sid : String | Nil #

[View source]
def phone_number_sid=(new_value : String | Nil) #

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


[View source]
def phone_number_sid_present=(phone_number_sid_present : Bool) #

[View source]
def phone_number_sid_present? : Bool #

[View source]
def price : String | Nil #

[View source]
def price=(new_value : String | Nil) #

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


[View source]
def price_present=(price_present : Bool) #

[View source]
def price_present? : Bool #

[View source]
def price_unit : String | Nil #

[View source]
def price_unit=(new_value : String | Nil) #

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


[View source]
def price_unit_present=(price_unit_present : Bool) #

[View source]
def price_unit_present? : Bool #

[View source]
def queue_time : String | Nil #

[View source]
def queue_time=(new_value : String | Nil) #

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


[View source]
def queue_time_present=(queue_time_present : Bool) #

[View source]
def queue_time_present? : Bool #

[View source]
def sid : String | Nil #

[View source]
def sid=(new_value : String | Nil) #

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


[View source]
def sid_present=(sid_present : Bool) #

[View source]
def sid_present? : Bool #

[View source]
def start_time : Time | Nil #

[View source]
def start_time=(new_value : Time | Nil) #

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


[View source]
def start_time_present=(start_time_present : Bool) #

[View source]
def start_time_present? : Bool #

[View source]
def status : Twilio::CallEnumStatus | Nil #

[View source]
def status=(new_value : Twilio::CallEnumStatus | Nil) #

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


[View source]
def subresource_uris : Hash(String, String) | Nil #

[View source]
def subresource_uris=(new_value : Hash(String, String) | Nil) #

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


[View source]
def subresource_uris_present=(subresource_uris_present : Bool) #

[View source]
def subresource_uris_present? : Bool #

[View source]
def to : String | Nil #

[View source]
def to=(new_value : String | Nil) #

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


[View source]
def to_formatted : String | Nil #

[View source]
def to_formatted=(new_value : String | Nil) #

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


[View source]
def to_formatted_present=(to_formatted_present : Bool) #

[View source]
def to_formatted_present? : Bool #

[View source]
def to_present=(to_present : Bool) #

[View source]
def to_present? : Bool #

[View source]
def trunk_sid : String | Nil #

[View source]
def trunk_sid=(new_value : String | Nil) #

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


[View source]
def trunk_sid_present=(trunk_sid_present : Bool) #

[View source]
def trunk_sid_present? : Bool #

[View source]
def uri : String | Nil #

[View source]
def uri=(new_value : String | Nil) #

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


[View source]
def uri_present=(uri_present : Bool) #

[View source]
def uri_present? : Bool #

[View source]
def valid? : Bool #

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


[View source]