Class: OctaSpace::Types::Balance
- Inherits:
-
Data
- Object
- Data
- OctaSpace::Types::Balance
- Defined in:
- lib/octaspace/types/balance.rb
Overview
Value object representing an account balance
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
Instance Method Summary collapse
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount
6 7 8 |
# File 'lib/octaspace/types/balance.rb', line 6 def amount @amount end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency
6 7 8 |
# File 'lib/octaspace/types/balance.rb', line 6 def currency @currency end |
Instance Method Details
#to_s ⇒ String
8 |
# File 'lib/octaspace/types/balance.rb', line 8 def to_s = "#{amount} #{currency}" |