Class: LogWeaver::CombinedLogIndexKey
- Inherits:
-
Struct
- Object
- Struct
- LogWeaver::CombinedLogIndexKey
- Includes:
- Comparable
- Defined in:
- lib/log_weaver/combined_log_index_key.rb
Instance Attribute Summary collapse
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
Instance Attribute Details
#prefix ⇒ Object
Returns the value of attribute prefix
2 3 4 |
# File 'lib/log_weaver/combined_log_index_key.rb', line 2 def prefix @prefix end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
2 3 4 |
# File 'lib/log_weaver/combined_log_index_key.rb', line 2 def @timestamp end |
Instance Method Details
#<=>(other) ⇒ Object
5 6 7 8 |
# File 'lib/log_weaver/combined_log_index_key.rb', line 5 def <=>(other) return <=> other. unless == other. return prefix <=> other.prefix end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/log_weaver/combined_log_index_key.rb', line 10 def to_s "#{prefix}#{}" end |