Exception: Bitcoin::InsufficientFunds
Overview
InsufficientFunds is raised when an account (or the bitcoind as a whole) doesn’t have enough Bitcoin to perform an action.
Instance Attribute Summary collapse
-
#available ⇒ Object
readonly
This Float is the actual funds we have available to perform the action.
-
#required ⇒ Object
readonly
This Float is the amount we would need to perform the action.
Instance Method Summary collapse
-
#initialize(required, available) ⇒ InsufficientFunds
constructor
A new instance of InsufficientFunds.
Constructor Details
#initialize(required, available) ⇒ InsufficientFunds
Returns a new instance of InsufficientFunds.
80 81 82 |
# File 'lib/bc.rb', line 80 def initialize(required, available) super("฿#{required} required, but only #{available} available") end |
Instance Attribute Details
#available ⇒ Object (readonly)
This Float is the actual funds we have available to perform the action.
78 79 80 |
# File 'lib/bc.rb', line 78 def available @available end |
#required ⇒ Object (readonly)
This Float is the amount we would need to perform the action.
75 76 77 |
# File 'lib/bc.rb', line 75 def required @required end |