Class: Rundock::Hook::Base
Direct Known Subclasses
Constant Summary collapse
- HookNotImplementedError =
Class.new(NotImplementedError)
Instance Attribute Summary collapse
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #hook(operation_attributes = [], log_buffer = []) ⇒ Object
-
#initialize(name, contents = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(name, contents = {}) ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/rundock/hook/base.rb', line 9 def initialize(name, contents = {}) @name = name @contents = contents end |
Instance Attribute Details
#contents ⇒ Object (readonly)
Returns the value of attribute contents.
7 8 9 |
# File 'lib/rundock/hook/base.rb', line 7 def contents @contents end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/rundock/hook/base.rb', line 6 def name @name end |
Instance Method Details
#hook(operation_attributes = [], log_buffer = []) ⇒ Object
14 15 16 |
# File 'lib/rundock/hook/base.rb', line 14 def hook(operation_attributes = [], log_buffer = []) raise HookNotImplementedError end |