Class: JenkinsJob::View

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyjobbuilderdsl/view.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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