Class: LoggerJson::Model
- Inherits:
-
Object
- Object
- LoggerJson::Model
- Defined in:
- lib/logger_json/model.rb
Instance Attribute Summary collapse
-
#json ⇒ Object
Returns the value of attribute json.
Instance Method Summary collapse
-
#initialize(message, type) ⇒ Model
constructor
A new instance of Model.
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(, type) @type = type @json = convert_to_json end |
Instance Attribute Details
#json ⇒ Object
Returns the value of attribute json.
3 4 5 |
# File 'lib/logger_json/model.rb', line 3 def json @json end |