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