Class: ChurnVsComplexity::Gate::Checker::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/churn_vs_complexity/gate/checker.rb

Instance Method Summary collapse

Constructor Details

#initialize(json, passed:) ⇒ Result

Returns a new instance of Result.



9
10
11
12
# File 'lib/churn_vs_complexity/gate/checker.rb', line 9

def initialize(json, passed:)
  @json = json
  @passed = passed
end

Instance Method Details

#passed? ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/churn_vs_complexity/gate/checker.rb', line 14

def passed?
  @passed
end

#to_s ⇒ Object



18
19
20
# File 'lib/churn_vs_complexity/gate/checker.rb', line 18

def to_s
  @json
end