Class: Twilio::REST::Supersim::V1::UsageRecordInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/supersim/v1/usage_record.rb

Overview

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ UsageRecordInstance

Initialize the UsageRecordInstance



209
210
211
212
213
214
215
216
217
218
219
220
221
# File 'lib/twilio-ruby/rest/supersim/v1/usage_record.rb', line 209

def initialize(version, payload)
  super(version)

  # Marshaled Properties
  @properties = {
      'account_sid' => payload['account_sid'],
      'sim_sid' => payload['sim_sid'],
      'period' => payload['period'],
      'data_upload' => payload['data_upload'].to_i,
      'data_download' => payload['data_download'].to_i,
      'data_total' => payload['data_total'].to_i,
  }
end

Instance Method Details

#account_sidString



225
226
227
# File 'lib/twilio-ruby/rest/supersim/v1/usage_record.rb', line 225

def 
  @properties['account_sid']
end

#data_downloadString



249
250
251
# File 'lib/twilio-ruby/rest/supersim/v1/usage_record.rb', line 249

def data_download
  @properties['data_download']
end

#data_totalString



255
256
257
# File 'lib/twilio-ruby/rest/supersim/v1/usage_record.rb', line 255

def data_total
  @properties['data_total']
end

#data_uploadString



243
244
245
# File 'lib/twilio-ruby/rest/supersim/v1/usage_record.rb', line 243

def data_upload
  @properties['data_upload']
end

#inspectObject

Provide a detailed, user friendly representation



267
268
269
# File 'lib/twilio-ruby/rest/supersim/v1/usage_record.rb', line 267

def inspect
  "<Twilio.Supersim.V1.UsageRecordInstance>"
end

#periodHash



237
238
239
# File 'lib/twilio-ruby/rest/supersim/v1/usage_record.rb', line 237

def period
  @properties['period']
end

#sim_sidString



231
232
233
# File 'lib/twilio-ruby/rest/supersim/v1/usage_record.rb', line 231

def sim_sid
  @properties['sim_sid']
end

#to_sObject

Provide a user friendly representation



261
262
263
# File 'lib/twilio-ruby/rest/supersim/v1/usage_record.rb', line 261

def to_s
  "<Twilio.Supersim.V1.UsageRecordInstance>"
end