class Twilio::UsageUsageRecord
 
  - Twilio::UsageUsageRecord
 - Reference
 - Object
 
Included Modules
- JSON::Serializable
 - JSON::Serializable::Unmapped
 - OpenApi::Json
 - OpenApi::Validatable
 
Defined in:
twilio/models/usage_usage_record.crConstant Summary
- 
        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 : JSON::PullParser)
 - 
        .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
 
Instance Method Summary
- 
        #==(other : self)
        
          
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
 - #account_sid : String | Nil
 - 
        #account_sid=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #account_sid_present=(account_sid_present : Bool)
 - #account_sid_present? : Bool
 - #api_version : String | Nil
 - 
        #api_version=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #api_version_present=(api_version_present : Bool)
 - #api_version_present? : Bool
 - #as_of : String | Nil
 - 
        #as_of=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #as_of_present=(as_of_present : Bool)
 - #as_of_present? : Bool
 - #category : Twilio::UsageRecordEnumCategory | Nil
 - 
        #category=(new_value : Twilio::UsageRecordEnumCategory | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #count : String | Nil
 - 
        #count=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #count_present=(count_present : Bool)
 - #count_present? : Bool
 - #count_unit : String | Nil
 - 
        #count_unit=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #count_unit_present=(count_unit_present : Bool)
 - #count_unit_present? : Bool
 - #description : String | Nil
 - 
        #description=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #description_present=(description_present : Bool)
 - #description_present? : Bool
 - #end_date : Time | Nil
 - 
        #end_date=(new_value : Time | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #end_date_present=(end_date_present : Bool)
 - #end_date_present? : Bool
 - 
        #hash(hasher)
        
          
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
 - 
        #list_invalid_properties : Array(String)
        
          
Show invalid properties with the reasons.
 - #price : String | Nil
 - 
        #price=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #price_present=(price_present : Bool)
 - #price_present? : Bool
 - #price_unit : String | Nil
 - 
        #price_unit=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #price_unit_present=(price_unit_present : Bool)
 - #price_unit_present? : Bool
 - #start_date : Time | Nil
 - 
        #start_date=(new_value : Time | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #start_date_present=(start_date_present : Bool)
 - #start_date_present? : Bool
 - #subresource_uris : Hash(String, String) | Nil
 - 
        #subresource_uris=(new_value : Hash(String, String) | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #subresource_uris_present=(subresource_uris_present : Bool)
 - #subresource_uris_present? : Bool
 - #uri : String | Nil
 - 
        #uri=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #uri_present=(uri_present : Bool)
 - #uri_present? : Bool
 - #usage : String | Nil
 - 
        #usage=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #usage_present=(usage_present : Bool)
 - #usage_present? : Bool
 - #usage_unit : String | Nil
 - 
        #usage_unit=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #usage_unit_present=(usage_unit_present : Bool)
 - #usage_unit_present? : Bool
 - 
        #valid? : Bool
        
          
Check to see if the all the properties in the model are valid @return true if the model is valid
 
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
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] account_sid Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] api_version Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] as_of Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] category Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] count Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] count_unit Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] description Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] end_date Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] price Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] price_unit Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] start_date Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] subresource_uris Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] uri Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] usage Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] usage_unit Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid