Class: Twilio::REST::Api::V2010::AccountContext::UsageInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/api/v2010/account/usage.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, account_sid: nil) ⇒ UsageInstance

Initialize the UsageInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String) (defaults to: nil)

    A 34 character string that uniquely identifies this resource.


100
101
102
# File 'lib/twilio-ruby/rest/api/v2010/account/usage.rb', line 100

def initialize(version, payload, account_sid: nil)
  super(version)
end

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation


112
113
114
# File 'lib/twilio-ruby/rest/api/v2010/account/usage.rb', line 112

def inspect
  "<Twilio.Api.V2010.UsageInstance>"
end

#to_sObject

Provide a user friendly representation


106
107
108
# File 'lib/twilio-ruby/rest/api/v2010/account/usage.rb', line 106

def to_s
  "<Twilio.Api.V2010.UsageInstance>"
end