Class: BuildkiteWatcher::Config
- Inherits:
-
Object
- Object
- BuildkiteWatcher::Config
- Defined in:
- lib/buildkite_watcher/config.rb
Instance Attribute Summary collapse
-
#buildkite_token ⇒ Object
readonly
Returns the value of attribute buildkite_token.
-
#pipeline_slug ⇒ Object
readonly
Returns the value of attribute pipeline_slug.
Instance Method Summary collapse
-
#initialize(config, secrets) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(config, secrets) ⇒ Config
Returns a new instance of Config.
7 8 9 10 |
# File 'lib/buildkite_watcher/config.rb', line 7 def initialize(config, secrets) @pipeline_slug = config.fetch(:pipeline_slug) @buildkite_token = secrets.fetch(:buildkite_token) end |
Instance Attribute Details
#buildkite_token ⇒ Object (readonly)
Returns the value of attribute buildkite_token.
5 6 7 |
# File 'lib/buildkite_watcher/config.rb', line 5 def buildkite_token @buildkite_token end |
#pipeline_slug ⇒ Object (readonly)
Returns the value of attribute pipeline_slug.
5 6 7 |
# File 'lib/buildkite_watcher/config.rb', line 5 def pipeline_slug @pipeline_slug end |