Class: Yabeda::Puma::Plugin::Statistics::Parser
- Inherits:
-
Object
- Object
- Yabeda::Puma::Plugin::Statistics::Parser
- Defined in:
- lib/yabeda/puma/plugin/statistics/parser.rb
Instance Attribute Summary collapse
-
#clustered ⇒ Object
readonly
Returns the value of attribute clustered.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(clustered:, data:) ⇒ Parser
constructor
A new instance of Parser.
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
#clustered ⇒ Object (readonly)
Returns the value of attribute clustered.
8 9 10 |
# File 'lib/yabeda/puma/plugin/statistics/parser.rb', line 8 def clustered @clustered end |
#data ⇒ Object (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
#call ⇒ Object
15 16 17 |
# File 'lib/yabeda/puma/plugin/statistics/parser.rb', line 15 def call [].tap { |result| parse(data, {}, result) } end |