Class: KSConnect::API::Plugin::Config
- Inherits:
-
Object
- Object
- KSConnect::API::Plugin::Config
- Includes:
- Logs
- Defined in:
- lib/ksconnect/api/plugin/config.rb
Instance Attribute Summary collapse
-
#on_initialize ⇒ Object
Returns the value of attribute on_initialize.
-
#on_push ⇒ Object
Returns the value of attribute on_push.
-
#on_teardown ⇒ Object
Returns the value of attribute on_teardown.
-
#on_update ⇒ Object
Returns the value of attribute on_update.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Methods included from Logs
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
11 12 13 |
# File 'lib/ksconnect/api/plugin/config.rb', line 11 def initialize @on_initialize = @on_update = @on_teardown = @on_push = lambda { |msg| logger.debug "No callback set for msg: #{msg}" } end |
Instance Attribute Details
#on_initialize ⇒ Object
Returns the value of attribute on_initialize.
9 10 11 |
# File 'lib/ksconnect/api/plugin/config.rb', line 9 def on_initialize @on_initialize end |
#on_push ⇒ Object
Returns the value of attribute on_push.
9 10 11 |
# File 'lib/ksconnect/api/plugin/config.rb', line 9 def on_push @on_push end |
#on_teardown ⇒ Object
Returns the value of attribute on_teardown.
9 10 11 |
# File 'lib/ksconnect/api/plugin/config.rb', line 9 def on_teardown @on_teardown end |
#on_update ⇒ Object
Returns the value of attribute on_update.
9 10 11 |
# File 'lib/ksconnect/api/plugin/config.rb', line 9 def on_update @on_update end |