Class: JenkinsJob::Common::Throttle
- Inherits:
- BasicObject
- Defined in:
- lib/rubyjobbuilderdsl/common/throttle.rb
Instance Attribute Summary collapse
-
#categories_ ⇒ Object
readonly
Returns the value of attribute categories_.
-
#max_per_node_ ⇒ Object
readonly
Returns the value of attribute max_per_node_.
-
#max_total_ ⇒ Object
readonly
Returns the value of attribute max_total_.
Instance Method Summary collapse
- #category(*value) ⇒ Object
-
#initialize ⇒ Throttle
constructor
A new instance of Throttle.
- #max_per_node(value) ⇒ Object
- #max_total(value) ⇒ Object
Constructor Details
#initialize ⇒ Throttle
Returns a new instance of Throttle.
6 7 8 9 |
# File 'lib/rubyjobbuilderdsl/common/throttle.rb', line 6 def initialize @max_per_node_ = 1 @max_total_ = 0 end |
Instance Attribute Details
#categories_ ⇒ Object (readonly)
Returns the value of attribute categories_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/throttle.rb', line 4 def categories_ @categories_ end |
#max_per_node_ ⇒ Object (readonly)
Returns the value of attribute max_per_node_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/throttle.rb', line 4 def max_per_node_ @max_per_node_ end |
#max_total_ ⇒ Object (readonly)
Returns the value of attribute max_total_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/common/throttle.rb', line 4 def max_total_ @max_total_ end |
Instance Method Details
#category(*value) ⇒ Object
19 20 21 |
# File 'lib/rubyjobbuilderdsl/common/throttle.rb', line 19 def category(*value) @categories_ = value end |
#max_per_node(value) ⇒ Object
11 12 13 |
# File 'lib/rubyjobbuilderdsl/common/throttle.rb', line 11 def max_per_node(value) @max_per_node_ = value end |
#max_total(value) ⇒ Object
15 16 17 |
# File 'lib/rubyjobbuilderdsl/common/throttle.rb', line 15 def max_total(value) @max_total_ = value end |