Class: Bitcoin::Grpc::WatchUtxoSpentResponseBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/bitcoin/grpc/server.rb

Class Method Summary collapse

Class Method Details

.build(id, event) ⇒ Object



173
174
175
176
177
178
# File 'lib/bitcoin/grpc/server.rb', line 173

def self.build(id, event)
  case event
  when Bitcoin::Grpc::EventUtxoSpent
    Bitcoin::Grpc::WatchUtxoSpentResponse.new(id: id, spent: event)
  end
end