Class: Patches::Config::Configuration
- Inherits:
-
Object
- Object
- Patches::Config::Configuration
- Defined in:
- lib/patches/config.rb
Instance Attribute Summary collapse
-
#hipchat_options ⇒ Object
Returns the value of attribute hipchat_options.
-
#sidekiq_options ⇒ Object
Returns the value of attribute sidekiq_options.
-
#sidekiq_parallel ⇒ Object
Returns the value of attribute sidekiq_parallel.
-
#sidekiq_queue ⇒ Object
Returns the value of attribute sidekiq_queue.
-
#slack_options ⇒ Object
Returns the value of attribute slack_options.
-
#use_hipchat ⇒ Object
Returns the value of attribute use_hipchat.
-
#use_sidekiq ⇒ Object
Returns the value of attribute use_sidekiq.
-
#use_slack ⇒ Object
Returns the value of attribute use_slack.
Instance Method Summary collapse
- #hipchat_api_token ⇒ Object
- #hipchat_init_options ⇒ Object
- #hipchat_room ⇒ Object
- #hipchat_user ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #slack_channel ⇒ Object
- #slack_username ⇒ Object
- #slack_webhook_url ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
20 21 22 |
# File 'lib/patches/config.rb', line 20 def initialize @sidekiq_queue = 'default' end |
Instance Attribute Details
#hipchat_options ⇒ Object
Returns the value of attribute hipchat_options.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def @hipchat_options end |
#sidekiq_options ⇒ Object
Returns the value of attribute sidekiq_options.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def @sidekiq_options end |
#sidekiq_parallel ⇒ Object
Returns the value of attribute sidekiq_parallel.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def sidekiq_parallel @sidekiq_parallel end |
#sidekiq_queue ⇒ Object
Returns the value of attribute sidekiq_queue.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def sidekiq_queue @sidekiq_queue end |
#slack_options ⇒ Object
Returns the value of attribute slack_options.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def @slack_options end |
#use_hipchat ⇒ Object
Returns the value of attribute use_hipchat.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def use_hipchat @use_hipchat end |
#use_sidekiq ⇒ Object
Returns the value of attribute use_sidekiq.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def use_sidekiq @use_sidekiq end |
#use_slack ⇒ Object
Returns the value of attribute use_slack.
17 18 19 |
# File 'lib/patches/config.rb', line 17 def use_slack @use_slack end |
Instance Method Details
#hipchat_api_token ⇒ Object
28 29 30 |
# File 'lib/patches/config.rb', line 28 def hipchat_api_token [:api_token] end |
#hipchat_init_options ⇒ Object
32 33 34 |
# File 'lib/patches/config.rb', line 32 def .except(:api_token, :room, :user) end |
#hipchat_room ⇒ Object
36 37 38 |
# File 'lib/patches/config.rb', line 36 def hipchat_room [:room] end |
#hipchat_user ⇒ Object
40 41 42 |
# File 'lib/patches/config.rb', line 40 def hipchat_user [:user] end |
#slack_channel ⇒ Object
44 45 46 |
# File 'lib/patches/config.rb', line 44 def slack_channel [:channel] end |
#slack_username ⇒ Object
48 49 50 |
# File 'lib/patches/config.rb', line 48 def slack_username [:username] end |
#slack_webhook_url ⇒ Object
52 53 54 |
# File 'lib/patches/config.rb', line 52 def slack_webhook_url [:webhook_url] end |