Class: CWlogsIO::LogEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/cwlogs_io/log_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, timestamp) ⇒ LogEvent

Returns a new instance of LogEvent.



7
8
9
10
# File 'lib/cwlogs_io/log_event.rb', line 7

def initialize(message, timestamp)
  @message = message
  @timestamp = timestamp
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/cwlogs_io/log_event.rb', line 5

def message
  @message
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



5
6
7
# File 'lib/cwlogs_io/log_event.rb', line 5

def timestamp
  @timestamp
end