Class: Girdle::LogEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/girdle/log_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messageObject (readonly)

Returns the value of attribute message.



9
10
11
# File 'lib/girdle/log_entry.rb', line 9

def message
  @message
end

#timeObject (readonly)

Returns the value of attribute time.



9
10
11
# File 'lib/girdle/log_entry.rb', line 9

def time
  @time
end