class

Twilio::Address

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

Constants

MAX_LENGTH_FOR_ACCOUNT_SID = 34
MAX_LENGTH_FOR_SID = 34
MIN_LENGTH_FOR_ACCOUNT_SID = 34
MIN_LENGTH_FOR_SID = 34
PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/
PATTERN_FOR_SID = /^AD[0-9a-fA-F]{32}$/

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, account_sid : String | Nil = nil, city : String | Nil = nil, customer_name : String | Nil = nil, date_created : Time | Nil = nil, date_updated : Time | Nil = nil, emergency_enabled : Bool | Nil = nil, friendly_name : String | Nil = nil, iso_country : String | Nil = nil, postal_code : String | Nil = nil, region : String | Nil = nil, sid : String | Nil = nil, street : String | Nil = nil, street_secondary : String | Nil = nil, uri : String | Nil = nil, validated : Bool | Nil = nil, verified : Bool | 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 is responsible for the 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
city

The city in which the address is located

Source
city=(new_value : String | Nil)

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

Source
city_present=(city_present : Bool)
Source
city_present?
Source
customer_name

The name associated with the address

Source
customer_name=(new_value : String | Nil)

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

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

The RFC 2822 date and time in GMT that the 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 the 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
emergency_enabled

Whether emergency calling has been enabled on this number

Source
emergency_enabled=(new_value : Bool | Nil)

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

Source
emergency_enabled_present=(emergency_enabled_present : Bool)
Source
emergency_enabled_present?
Source
friendly_name

The string that you assigned to describe the resource

Source
friendly_name=(new_value : String | Nil)

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

Source
friendly_name_present=(friendly_name_present : Bool)
Source
friendly_name_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

iso_country

The ISO country code of the address

Source
iso_country=(new_value : String | Nil)

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

Source
iso_country_present=(iso_country_present : Bool)
Source
iso_country_present?
Source
list_invalid_properties

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

Source
postal_code

The postal code of the address

Source
postal_code=(new_value : String | Nil)

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

Source
postal_code_present=(postal_code_present : Bool)
Source
postal_code_present?
Source
region

The state or region of the address

Source
region=(new_value : String | Nil)

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

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

The unique string that identifies the 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
street

The number and street address of the address

Source
street=(new_value : String | Nil)

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

Source
street_present=(street_present : Bool)
Source
street_present?
Source
street_secondary

The additional number and street address of the address

Source
street_secondary=(new_value : String | Nil)

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

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

The URI of the 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
validated

Whether the address has been validated to comply with local regulation

Source
validated=(new_value : Bool | Nil)

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

Source
validated_present=(validated_present : Bool)
Source
validated_present?
Source
verified

Whether the address has been verified to comply with regulation

Source
verified=(new_value : Bool | Nil)

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

Source
verified_present=(verified_present : Bool)
Source
verified_present?
Source