class

Twilio::Balance

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

Constants

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

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, account_sid : String | Nil = nil, balance : String | Nil = nil, currency : 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

Account Sid.

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
balance

Account balance

Source
balance=(new_value : String | Nil)

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

Source
balance_present=(balance_present : Bool)
Source
balance_present?
Source
currency

Currency units

Source
currency=(new_value : String | Nil)

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

Source
currency_present=(currency_present : Bool)
Source
currency_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
valid?

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

Source