Class: Ethmo::Monitor::NewHead

Inherits:
Hash
  • Object
show all
Defined in:
lib/ethmo/monitor/new_head.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(event) ⇒ NewHead

Returns a new instance of NewHead.



7
8
9
# File 'lib/ethmo/monitor/new_head.rb', line 7

def initialize(event)
  merge! event.dig('params', 'result')
end

Instance Method Details

#hashObject

TODO: Add methods for others attribute



13
14
15
# File 'lib/ethmo/monitor/new_head.rb', line 13

def hash
  self['hash']
end