Class: LoggerJson::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/logger_json/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, type) ⇒ Model

Returns a new instance of Model.



5
6
7
8
# File 'lib/logger_json/model.rb', line 5

def initialize(message, type)
  @type = type
  @json = convert_to_json message
end

Instance Attribute Details

#jsonObject

Returns the value of attribute json.



3
4
5
# File 'lib/logger_json/model.rb', line 3

def json
  @json
end