Class: Girdle::LogEntry
- Inherits:
-
Object
- Object
- Girdle::LogEntry
- Defined in:
- lib/girdle/log_entry.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(entry) ⇒ LogEntry
constructor
A new instance of LogEntry.
Constructor Details
#initialize(entry) ⇒ LogEntry
Returns a new instance of LogEntry.
4 5 6 7 |
# File 'lib/girdle/log_entry.rb', line 4 def initialize(entry) @message = entry[:message] || entry['message'] @time = entry[:time] || entry['time'] end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
9 10 11 |
# File 'lib/girdle/log_entry.rb', line 9 def @message end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
9 10 11 |
# File 'lib/girdle/log_entry.rb', line 9 def time @time end |