class Twilio::UsageUsageRecord

Included Modules

Defined in:

twilio/models/usage_usage_record.cr

Constant Summary

MAX_LENGTH_FOR_ACCOUNT_SID = 34
MIN_LENGTH_FOR_ACCOUNT_SID = 34
PATTERN_FOR_ACCOUNT_SID = /^AC[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, api_version : String | Nil = nil, as_of : String | Nil = nil, category : Twilio::UsageRecordEnumCategory | Nil = nil, count : String | Nil = nil, count_unit : String | Nil = nil, description : String | Nil = nil, end_date : Time | Nil = nil, price : String | Nil = nil, price_unit : String | Nil = nil, start_date : Time | Nil = nil, subresource_uris : Hash(String, String) | Nil = nil, uri : String | Nil = nil, usage : String | Nil = nil, usage_unit : 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 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 as_of : String | Nil #

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

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


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

[View source]
def as_of_present? : Bool #

[View source]
def category : Twilio::UsageRecordEnumCategory | Nil #

[View source]
def category=(new_value : Twilio::UsageRecordEnumCategory | Nil) #

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


[View source]
def count : String | Nil #

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

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


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

[View source]
def count_present? : Bool #

[View source]
def count_unit : String | Nil #

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

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


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

[View source]
def count_unit_present? : Bool #

[View source]
def description : String | Nil #

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

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


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

[View source]
def description_present? : Bool #

[View source]
def end_date : Time | Nil #

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

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


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

[View source]
def end_date_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 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 start_date : Time | Nil #

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

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


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

[View source]
def start_date_present? : Bool #

[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 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 usage : String | Nil #

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

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


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

[View source]
def usage_present? : Bool #

[View source]
def usage_unit : String | Nil #

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

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


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

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