Class: KSConnect::API::Plugin::Config
- Inherits:
-
Object
- Object
- KSConnect::API::Plugin::Config
- 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.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 |
# File 'lib/ksconnect/api/plugin/config.rb', line 7 def initialize @on_initialize = @on_update = @on_teardown = @on_push = lambda { |msg| "No callback set for msg: #{msg}" } end |
Instance Attribute Details
#on_initialize ⇒ Object
Returns the value of attribute on_initialize.
5 6 7 |
# File 'lib/ksconnect/api/plugin/config.rb', line 5 def on_initialize @on_initialize end |
#on_push ⇒ Object
Returns the value of attribute on_push.
5 6 7 |
# File 'lib/ksconnect/api/plugin/config.rb', line 5 def on_push @on_push end |
#on_teardown ⇒ Object
Returns the value of attribute on_teardown.
5 6 7 |
# File 'lib/ksconnect/api/plugin/config.rb', line 5 def on_teardown @on_teardown end |
#on_update ⇒ Object
Returns the value of attribute on_update.
5 6 7 |
# File 'lib/ksconnect/api/plugin/config.rb', line 5 def on_update @on_update end |