Class: Steep::Services::StatsCalculator::ErrorStats

Inherits:
Struct
  • Object
show all
Defined in:
lib/steep/services/stats_calculator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



17
18
19
# File 'lib/steep/services/stats_calculator.rb', line 17

def path
  @path
end

#targetObject

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



17
18
19
# File 'lib/steep/services/stats_calculator.rb', line 17

def target
  @target
end

Instance Method Details

#as_jsonObject



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