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.
73 74 75 |
# File 'lib/bc.rb', line 73 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.
71 72 73 |
# File 'lib/bc.rb', line 71 def available @available end |
#required ⇒ Object (readonly)
This Float is the amount we would need to perform the action.
68 69 70 |
# File 'lib/bc.rb', line 68 def required @required end |