Class: WaffleAPI::Balances
- Inherits:
-
Object
- Object
- WaffleAPI::Balances
- Defined in:
- lib/waffle_api/balances.rb
Overview
Balances object give access to all balances from Wafflepool
Instance Attribute Summary collapse
-
#confirmed ⇒ Object
readonly
Returns the value of attribute confirmed.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#sent ⇒ Object
readonly
Returns the value of attribute sent.
-
#unconverted ⇒ Object
readonly
Returns the value of attribute unconverted.
Instance Method Summary collapse
-
#initialize(sent: 0.0, confirmed: 0.0, unconverted: 0.0) ⇒ Balances
constructor
A new instance of Balances.
Constructor Details
#initialize(sent: 0.0, confirmed: 0.0, unconverted: 0.0) ⇒ Balances
6 7 8 9 10 11 |
# File 'lib/waffle_api/balances.rb', line 6 def initialize(sent: 0.0, confirmed: 0.0, unconverted: 0.0) @sent = sent @confirmed = confirmed @unconverted = unconverted @expected = @confirmed + @unconverted end |
Instance Attribute Details
#confirmed ⇒ Object (readonly)
Returns the value of attribute confirmed.
4 5 6 |
# File 'lib/waffle_api/balances.rb', line 4 def confirmed @confirmed end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
4 5 6 |
# File 'lib/waffle_api/balances.rb', line 4 def expected @expected end |
#sent ⇒ Object (readonly)
Returns the value of attribute sent.
4 5 6 |
# File 'lib/waffle_api/balances.rb', line 4 def sent @sent end |
#unconverted ⇒ Object (readonly)
Returns the value of attribute unconverted.
4 5 6 |
# File 'lib/waffle_api/balances.rb', line 4 def unconverted @unconverted end |