class Twilio::AvailablePhoneNumberCountryAvailablePhoneNumberVoip

Included Modules

Defined in:

twilio/models/available_phone_number_country_available_phone_number_voip.cr

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(*, address_requirements : String | Nil = nil, beta : Bool | Nil = nil, capabilities : Twilio::AvailablePhoneNumberCountryAvailablePhoneNumberVoipCapabilities | Nil = nil, friendly_name : String | Nil = nil, iso_country : String | Nil = nil, lata : String | Nil = nil, latitude : Float64 | Nil = nil, locality : String | Nil = nil, longitude : Float64 | Nil = nil, phone_number : String | Nil = nil, postal_code : String | Nil = nil, rate_center : String | Nil = nil, region : 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 address_requirements : String | Nil #

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

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


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

[View source]
def address_requirements_present? : Bool #

[View source]
def beta : Bool | Nil #

[View source]
def beta=(new_value : Bool | Nil) #

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


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

[View source]
def beta_present? : Bool #

[View source]

[View source]

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


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

[View source]
def capabilities_present? : Bool #

[View source]
def friendly_name : String | Nil #

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

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


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

[View source]
def friendly_name_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 iso_country : String | Nil #

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

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


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

[View source]
def iso_country_present? : Bool #

[View source]
def lata : String | Nil #

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

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


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

[View source]
def lata_present? : Bool #

[View source]
def latitude : Float64 | Nil #

[View source]
def latitude=(new_value : Float64 | Nil) #

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


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

[View source]
def latitude_present? : Bool #

[View source]
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 locality : String | Nil #

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

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


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

[View source]
def locality_present? : Bool #

[View source]
def longitude : Float64 | Nil #

[View source]
def longitude=(new_value : Float64 | Nil) #

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


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

[View source]
def longitude_present? : Bool #

[View source]
def phone_number : String | Nil #

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

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


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

[View source]
def phone_number_present? : Bool #

[View source]
def postal_code : String | Nil #

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

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


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

[View source]
def postal_code_present? : Bool #

[View source]
def rate_center : String | Nil #

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

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


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

[View source]
def rate_center_present? : Bool #

[View source]
def region : String | Nil #

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

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


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

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