Class: Achoo::System::LogEntry
- Inherits:
-
Object
- Object
- Achoo::System::LogEntry
- Includes:
- Comparable
- Defined in:
- lib/achoo/system/log_entry.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
- #<=>(other_entry) ⇒ Object
-
#initialize(time, event) ⇒ LogEntry
constructor
A new instance of LogEntry.
Constructor Details
#initialize(time, event) ⇒ LogEntry
Returns a new instance of LogEntry.
12 13 14 15 |
# File 'lib/achoo/system/log_entry.rb', line 12 def initialize(time, event) @time = time @event = event end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
10 11 12 |
# File 'lib/achoo/system/log_entry.rb', line 10 def event @event end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
9 10 11 |
# File 'lib/achoo/system/log_entry.rb', line 9 def time @time end |
Instance Method Details
#<=>(other_entry) ⇒ Object
17 18 19 |
# File 'lib/achoo/system/log_entry.rb', line 17 def <=>(other_entry) time <=> other_entry.time end |