Class: RippleRest::Balance
- Inherits:
-
RestObject
- Object
- RestObject
- RippleRest::Balance
- Defined in:
- lib/ripple-rest/generated-schemas.rb,
lib/ripple-rest/schemas.rb,
lib/ripple-rest/generated-schemas.rb
Overview
A simplified representation of an account Balance
Instance Attribute Summary collapse
-
#counterparty ⇒ String
The Ripple account address of the currency’s issuer or gateway, or an empty string if the currency is XRP.
-
#currency ⇒ String<Currency>
The currency expressed as a three-character code.
-
#value ⇒ String
The quantity of the currency, denoted as a string to retain floating point precision.
Instance Method Summary collapse
Methods inherited from RestObject
Constructor Details
This class inherits a constructor from RippleRest::RestObject
Instance Attribute Details
#counterparty ⇒ String
The Ripple account address of the currency’s issuer or gateway, or an empty string if the currency is XRP
362 |
# File 'lib/ripple-rest/generated-schemas.rb', line 362 property :counterparty, [:String, "^$|^r[1-9A-HJ-NP-Za-km-z]{25,33}$"] |
#currency ⇒ String<Currency>
The currency expressed as a three-character code
356 |
# File 'lib/ripple-rest/generated-schemas.rb', line 356 property :currency, :Currency |
#value ⇒ String
The quantity of the currency, denoted as a string to retain floating point precision
350 |
# File 'lib/ripple-rest/generated-schemas.rb', line 350 property :value, :String |
Instance Method Details
#inspect ⇒ String
46 47 48 |
# File 'lib/ripple-rest/schemas.rb', line 46 def inspect "#{value.to_s} #{currency}#{counterparty.to_s.size > 0 ? " (#{counterparty})" : ""}" end |