Class: App42::Log::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/log/Log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log) ⇒ Message

This is a constructor that takes no parameter



27
28
29
# File 'lib/log/Log.rb', line 27

def initialize(log)
  log.messageList.push(self);
end

Instance Attribute Details

#logTimeObject

Returns the value of attribute logTime.



21
22
23
# File 'lib/log/Log.rb', line 21

def logTime
  @logTime
end

#messageObject

Returns the value of attribute message.



21
22
23
# File 'lib/log/Log.rb', line 21

def message
  @message
end

#moduleObject

Returns the value of attribute module.



21
22
23
# File 'lib/log/Log.rb', line 21

def module
  @module
end

#typeObject

Returns the value of attribute type.



21
22
23
# File 'lib/log/Log.rb', line 21

def type
  @type
end

Instance Method Details

#to_sObject

Returns the Log Response in JSON format.

Returns:

  • the response in JSON format.



38
39
40
# File 'lib/log/Log.rb', line 38

def to_s
  return "Message : #{self.message}" + "type : #{self.type}" + "AppModule : #{self.module}" + "logTime : #{self.logTime}";
end