Class: Twilio::REST::Api::V2010::AccountContext::BalanceInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::BalanceInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/balance.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The unique SID identifier of the Account.
-
#balance ⇒ String
The balance of the Account, in units specified by the unit parameter.
-
#currency ⇒ String
The units of currency for the account balance.
-
#initialize(version, payload, account_sid: nil) ⇒ BalanceInstance
constructor
Initialize the BalanceInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, account_sid: nil) ⇒ BalanceInstance
Initialize the BalanceInstance
188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/twilio-ruby/rest/api/v2010/account/balance.rb', line 188 def initialize(version, payload , account_sid: nil) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'balance' => payload['balance'], 'currency' => payload['currency'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The unique SID identifier of the Account.
203 204 205 |
# File 'lib/twilio-ruby/rest/api/v2010/account/balance.rb', line 203 def account_sid @properties['account_sid'] end |
#balance ⇒ String
Returns The balance of the Account, in units specified by the unit parameter. Balance changes may not be reflected immediately. Child accounts do not contain balance information.
209 210 211 |
# File 'lib/twilio-ruby/rest/api/v2010/account/balance.rb', line 209 def balance @properties['balance'] end |
#currency ⇒ String
Returns The units of currency for the account balance.
215 216 217 |
# File 'lib/twilio-ruby/rest/api/v2010/account/balance.rb', line 215 def currency @properties['currency'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
227 228 229 |
# File 'lib/twilio-ruby/rest/api/v2010/account/balance.rb', line 227 def inspect "<Twilio.Api.V2010.BalanceInstance>" end |
#to_s ⇒ Object
Provide a user friendly representation
221 222 223 |
# File 'lib/twilio-ruby/rest/api/v2010/account/balance.rb', line 221 def to_s "<Twilio.Api.V2010.BalanceInstance>" end |