Class: TransactionToBlockService

Inherits:
ApplicationService show all
Defined in:
app/services/transaction_to_block_service.rb

Instance Method Summary collapse

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

#callObject



11
12
13
# File 'app/services/transaction_to_block_service.rb', line 11

def call
  create_transaction_to_block
end