Class: JenkinsJob::View
- Inherits:
-
Object
- Object
- JenkinsJob::View
- Defined in:
- lib/rubyjobbuilderdsl/view.rb
Instance Attribute Summary collapse
-
#jobname_ ⇒ Object
readonly
Returns the value of attribute jobname_.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, builder) ⇒ View
constructor
A new instance of View.
- #job(regex) ⇒ Object
Constructor Details
#initialize(name, builder) ⇒ View
Returns a new instance of View.
5 6 7 8 |
# File 'lib/rubyjobbuilderdsl/view.rb', line 5 def initialize(name, builder) @builder = builder @name = name end |
Instance Attribute Details
#jobname_ ⇒ Object (readonly)
Returns the value of attribute jobname_.
3 4 5 |
# File 'lib/rubyjobbuilderdsl/view.rb', line 3 def jobname_ @jobname_ end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/rubyjobbuilderdsl/view.rb', line 3 def name @name end |
Instance Method Details
#job(regex) ⇒ Object
10 11 12 |
# File 'lib/rubyjobbuilderdsl/view.rb', line 10 def job(regex) @jobname_ = regex end |