Class: F4w::Logging::AppData

Inherits:
Object
  • Object
show all
Defined in:
lib/f4w/logging/app_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

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(_options = nil)
  { 'appData' => @data.to_json }
end