Class: Buildkite::Builder::Plugin
- Inherits:
-
Object
- Object
- Buildkite::Builder::Plugin
- Defined in:
- lib/buildkite/builder/plugin.rb
Instance Attribute Summary collapse
-
#default_attributes ⇒ Object
readonly
Returns the value of attribute default_attributes.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(uri, default_attributes = {}) ⇒ Plugin
constructor
A new instance of Plugin.
Constructor Details
#initialize(uri, default_attributes = {}) ⇒ Plugin
Returns a new instance of Plugin.
12 13 14 15 16 |
# File 'lib/buildkite/builder/plugin.rb', line 12 def initialize(uri, default_attributes = {}) @uri = uri @source, @version = uri.split('#') @default_attributes = default_attributes end |
Instance Attribute Details
#default_attributes ⇒ Object (readonly)
Returns the value of attribute default_attributes.
6 7 8 |
# File 'lib/buildkite/builder/plugin.rb', line 6 def default_attributes @default_attributes end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/buildkite/builder/plugin.rb', line 6 def source @source end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/buildkite/builder/plugin.rb', line 6 def uri @uri end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
6 7 8 |
# File 'lib/buildkite/builder/plugin.rb', line 6 def version @version end |