Class: TransactionToBlockService
- Inherits:
-
ApplicationService
- Object
- ApplicationService
- TransactionToBlockService
- Defined in:
- app/services/transaction_to_block_service.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(receiver_key, sender_key, amount, block_id) ⇒ TransactionToBlockService
constructor
A new instance of TransactionToBlockService.
Constructor Details
#initialize(receiver_key, sender_key, amount, block_id) ⇒ TransactionToBlockService
Returns a new instance of TransactionToBlockService.
4 5 6 7 8 9 |
# File 'app/services/transaction_to_block_service.rb', line 4 def initialize(receiver_key, sender_key, amount, block_id) @receiver_key = receiver_key @sender_key = sender_key @amount = amount @block_id = block_id end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'app/services/transaction_to_block_service.rb', line 11 def call create_transaction_to_block end |