Class: Keoken::Backend::Base
- Inherits:
-
Object
- Object
- Keoken::Backend::Base
- Defined in:
- lib/keoken/backend/base.rb
Direct Known Subclasses
Keoken::Backend::BitcoinRuby::Transaction, Trezor::Transaction
Instance Attribute Summary collapse
-
#bitprim_transaction ⇒ Object
Returns the value of attribute bitprim_transaction.
-
#inputs ⇒ Object
Returns the value of attribute inputs.
-
#tokens ⇒ Object
Returns the value of attribute tokens.
-
#total_inputs_amount ⇒ Object
Returns the value of attribute total_inputs_amount.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 |
# File 'lib/keoken/backend/base.rb', line 6 def initialize @inputs = [] @tokens = [] @total_inputs_amount = 0 @bitprim_transaction = Keoken::Bitprim::Transaction.new end |
Instance Attribute Details
#bitprim_transaction ⇒ Object
Returns the value of attribute bitprim_transaction.
4 5 6 |
# File 'lib/keoken/backend/base.rb', line 4 def bitprim_transaction @bitprim_transaction end |
#inputs ⇒ Object
Returns the value of attribute inputs.
4 5 6 |
# File 'lib/keoken/backend/base.rb', line 4 def inputs @inputs end |
#tokens ⇒ Object
Returns the value of attribute tokens.
4 5 6 |
# File 'lib/keoken/backend/base.rb', line 4 def tokens @tokens end |
#total_inputs_amount ⇒ Object
Returns the value of attribute total_inputs_amount.
4 5 6 |
# File 'lib/keoken/backend/base.rb', line 4 def total_inputs_amount @total_inputs_amount end |