class Twilio::REST::Wireless::V1::UsageRecordInstance
Public Class Methods
new(version, payload)
click to toggle source
Initialize the UsageRecordInstance
@param [Version] version Version
that contains the resource @param [Hash] payload payload that contains response from Twilio
@return [UsageRecordInstance] UsageRecordInstance
Calls superclass method
Twilio::REST::InstanceResource::new
# File lib/twilio-ruby/rest/wireless/v1/usage_record.rb 178 def initialize(version, payload) 179 super(version) 180 181 # Marshaled Properties 182 @properties = { 183 'account_sid' => payload['account_sid'], 184 'period' => payload['period'], 185 'commands' => payload['commands'], 186 'data' => payload['data'], 187 } 188 end
Public Instance Methods
account_sid()
click to toggle source
@return [String] The SID of the Account that created the resource
# File lib/twilio-ruby/rest/wireless/v1/usage_record.rb 192 def account_sid 193 @properties['account_sid'] 194 end
commands()
click to toggle source
@return [Hash] An object that describes the aggregated Commands usage for all SIMs during the specified period
# File lib/twilio-ruby/rest/wireless/v1/usage_record.rb 204 def commands 205 @properties['commands'] 206 end
data()
click to toggle source
@return [Hash] An object that describes the aggregated Data usage for all SIMs over the period
# File lib/twilio-ruby/rest/wireless/v1/usage_record.rb 210 def data 211 @properties['data'] 212 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/wireless/v1/usage_record.rb 222 def inspect 223 "<Twilio.Wireless.V1.UsageRecordInstance>" 224 end
period()
click to toggle source
@return [Hash] The time period for which usage is reported
# File lib/twilio-ruby/rest/wireless/v1/usage_record.rb 198 def period 199 @properties['period'] 200 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/wireless/v1/usage_record.rb 216 def to_s 217 "<Twilio.Wireless.V1.UsageRecordInstance>" 218 end