Class: Yabeda::Puma::Plugin::Statistics::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/yabeda/puma/plugin/statistics/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clustered:, data:) ⇒ Parser

Returns a new instance of Parser.



10
11
12
13
# File 'lib/yabeda/puma/plugin/statistics/parser.rb', line 10

def initialize(clustered:, data:)
  @clustered = clustered
  @data = data
end

Instance Attribute Details

#clusteredObject (readonly)

Returns the value of attribute clustered.



8
9
10
# File 'lib/yabeda/puma/plugin/statistics/parser.rb', line 8

def clustered
  @clustered
end

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/yabeda/puma/plugin/statistics/parser.rb', line 8

def data
  @data
end

Instance Method Details

#callObject



15
16
17
# File 'lib/yabeda/puma/plugin/statistics/parser.rb', line 15

def call
  [].tap { |result| parse(data, {}, result) }
end