Class: Opentsdb::QueryRateOptions
- Inherits:
-
Object
- Object
- Opentsdb::QueryRateOptions
- Defined in:
- lib/opentsdb/query_rate_options.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#counter ⇒ Object
Returns the value of attribute counter.
-
#counter_max ⇒ Object
Returns the value of attribute counter_max.
-
#reset_value ⇒ Object
Returns the value of attribute reset_value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(counter, counter_max, reset_value) ⇒ QueryRateOptions
constructor
A new instance of QueryRateOptions.
Constructor Details
#initialize(counter, counter_max, reset_value) ⇒ QueryRateOptions
Returns a new instance of QueryRateOptions.
6 7 8 9 10 |
# File 'lib/opentsdb/query_rate_options.rb', line 6 def initialize(counter, counter_max, reset_value) @counter = counter @counter_max = counter_max @reset_value = reset_value end |
Instance Attribute Details
#counter ⇒ Object
Returns the value of attribute counter.
4 5 6 |
# File 'lib/opentsdb/query_rate_options.rb', line 4 def counter @counter end |
#counter_max ⇒ Object
Returns the value of attribute counter_max.
4 5 6 |
# File 'lib/opentsdb/query_rate_options.rb', line 4 def counter_max @counter_max end |
#reset_value ⇒ Object
Returns the value of attribute reset_value.
4 5 6 |
# File 'lib/opentsdb/query_rate_options.rb', line 4 def reset_value @reset_value end |
Class Method Details
.default ⇒ Object
12 13 14 |
# File 'lib/opentsdb/query_rate_options.rb', line 12 def self.default new(false, 9_999_999_999, 0) end |