Class: Binpkgbot::Tasks::Base
- Inherits:
-
Object
- Object
- Binpkgbot::Tasks::Base
- Defined in:
- lib/binpkgbot/tasks/base.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(config: nil, **options) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(config: nil, **options) ⇒ Base
Returns a new instance of Base.
4 5 6 7 |
# File 'lib/binpkgbot/tasks/base.rb', line 4 def initialize(config: nil, **) @config = config @options = end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/binpkgbot/tasks/base.rb', line 9 def config @config end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/binpkgbot/tasks/base.rb', line 9 def @options end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 |
# File 'lib/binpkgbot/tasks/base.rb', line 11 def execute puts "==> #{self.class}: #{.inspect}" run end |