Class: F4w::Logging::AppData
- Inherits:
-
Object
- Object
- F4w::Logging::AppData
- Defined in:
- lib/f4w/logging/app_data.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
- #as_json(_options = nil) ⇒ Object
-
#initialize(data = {}) ⇒ AppData
constructor
A new instance of AppData.
Constructor Details
#initialize(data = {}) ⇒ AppData
Returns a new instance of AppData.
6 7 8 |
# File 'lib/f4w/logging/app_data.rb', line 6 def initialize(data = {}) @data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/f4w/logging/app_data.rb', line 4 def data @data end |
Instance Method Details
#as_json(_options = nil) ⇒ Object
10 11 12 |
# File 'lib/f4w/logging/app_data.rb', line 10 def as_json( = nil) { 'appData' => @data.to_json } end |