Class: Pinspec::Emit::StabilityFilter::Verdict

Inherits:
Data
  • Object
show all
Defined in:
lib/pinspec/emit/stability_filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#case_idObject (readonly)

Returns the value of attribute case_id

Returns:

  • (Object)

    the current value of case_id



16
17
18
# File 'lib/pinspec/emit/stability_filter.rb', line 16

def case_id
  @case_id
end

#causeObject (readonly)

Returns the value of attribute cause

Returns:

  • (Object)

    the current value of cause



16
17
18
# File 'lib/pinspec/emit/stability_filter.rb', line 16

def cause
  @cause
end

#diffObject (readonly)

Returns the value of attribute diff

Returns:

  • (Object)

    the current value of diff



16
17
18
# File 'lib/pinspec/emit/stability_filter.rb', line 16

def diff
  @diff
end

#observationObject (readonly)

Returns the value of attribute observation

Returns:

  • (Object)

    the current value of observation



16
17
18
# File 'lib/pinspec/emit/stability_filter.rb', line 16

def observation
  @observation
end

#stableObject (readonly)

Returns the value of attribute stable

Returns:

  • (Object)

    the current value of stable



16
17
18
# File 'lib/pinspec/emit/stability_filter.rb', line 16

def stable
  @stable
end

Instance Method Details

#stable?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/pinspec/emit/stability_filter.rb', line 17

def stable?
  stable
end

#to_sObject



21
22
23
# File 'lib/pinspec/emit/stability_filter.rb', line 21

def to_s
  stable? ? "#{case_id} stable" : "#{case_id} unstable (#{cause})"
end