Class: Stove::Action::Base
- Inherits:
-
Object
- Object
- Stove::Action::Base
- Extended by:
- Mixin::Optionable, Mixin::Validatable
- Includes:
- Logify
- Defined in:
- lib/stove/actions/base.rb
Instance Attribute Summary collapse
-
#cookbook ⇒ Object
readonly
Returns the value of attribute cookbook.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(cookbook, options = {}) ⇒ Base
constructor
A new instance of Base.
- #run ⇒ Object
Methods included from Mixin::Optionable
Methods included from Mixin::Validatable
Constructor Details
#initialize(cookbook, options = {}) ⇒ Base
Returns a new instance of Base.
13 14 15 |
# File 'lib/stove/actions/base.rb', line 13 def initialize(cookbook, = {}) @cookbook, @options = cookbook, end |
Instance Attribute Details
#cookbook ⇒ Object (readonly)
Returns the value of attribute cookbook.
10 11 12 |
# File 'lib/stove/actions/base.rb', line 10 def cookbook @cookbook end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/stove/actions/base.rb', line 11 def @options end |
Instance Method Details
#run ⇒ Object
17 18 19 |
# File 'lib/stove/actions/base.rb', line 17 def run raise Error::AbstractMethod.new(method: 'Action::Base#run') end |