Class: TimeWindowDropCollector::Results
- Inherits:
-
Object
- Object
- TimeWindowDropCollector::Results
- Defined in:
- lib/time_window_drop_collector/results.rb
Instance Attribute Summary collapse
-
#keys_values ⇒ Object
readonly
Returns the value of attribute keys_values.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(keys_values) ⇒ Results
constructor
A new instance of Results.
- #to_s ⇒ Object
Constructor Details
#initialize(keys_values) ⇒ Results
Returns a new instance of Results.
4 5 6 |
# File 'lib/time_window_drop_collector/results.rb', line 4 def initialize( keys_values ) @keys_values = keys_values end |
Instance Attribute Details
#keys_values ⇒ Object (readonly)
Returns the value of attribute keys_values.
2 3 4 |
# File 'lib/time_window_drop_collector/results.rb', line 2 def keys_values @keys_values end |
Instance Method Details
#[](key) ⇒ Object
8 9 10 |
# File 'lib/time_window_drop_collector/results.rb', line 8 def []( key ) keys_values[key].to_i end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/time_window_drop_collector/results.rb', line 12 def to_s keys_values.to_s end |