Class: Ethmo::Monitor::NewHead
- Inherits:
-
Hash
- Object
- Hash
- Ethmo::Monitor::NewHead
- Defined in:
- lib/ethmo/monitor/new_head.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#hash ⇒ Object
TODO: Add methods for others attribute.
-
#initialize(event) ⇒ NewHead
constructor
A new instance of NewHead.
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
#hash ⇒ Object
TODO: Add methods for others attribute
13 14 15 |
# File 'lib/ethmo/monitor/new_head.rb', line 13 def hash self['hash'] end |