Class: BiolaLogs::Generators::Base
- Inherits:
-
Object
- Object
- BiolaLogs::Generators::Base
- Defined in:
- lib/biola_logs/generators/base.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(event) ⇒ Base
constructor
event should quack like ActiveSupport::Notifications::Event.
- #to_hash ⇒ Object
Constructor Details
#initialize(event) ⇒ Base
event should quack like ActiveSupport::Notifications::Event
7 8 9 |
# File 'lib/biola_logs/generators/base.rb', line 7 def initialize(event) @event = event end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
4 5 6 |
# File 'lib/biola_logs/generators/base.rb', line 4 def event @event end |
Instance Method Details
#to_hash ⇒ Object
11 12 13 |
# File 'lib/biola_logs/generators/base.rb', line 11 def to_hash raise ArgumentError, 'This method should be overridden in a subclass' end |