Class: Steep::Services::StatsCalculator::ErrorStats
- Defined in:
- lib/steep/services/stats_calculator.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path
17 18 19 |
# File 'lib/steep/services/stats_calculator.rb', line 17 def path @path end |
#target ⇒ Object
Returns the value of attribute target
17 18 19 |
# File 'lib/steep/services/stats_calculator.rb', line 17 def target @target end |
Instance Method Details
#as_json ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/steep/services/stats_calculator.rb', line 18 def as_json { type: "error", target: target.name.to_s, path: path.to_s } end |