Sha256: fd100e2cc34ea2fb5ea60c64f6c9189c0d62320d3cfad162cf91cf8e2f95784d

Contents?: true

Size: 244 Bytes

Versions: 14

Compression:

Stored size: 244 Bytes

Contents

module LitmusPaper
  class ForcedHealth
    attr_reader :summary

    def initialize(health, summary)
      @health = health
      @summary = summary
    end

    def value
      @health
    end

    def ok?
      @health > 0
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
litmus_paper-0.6.1 lib/litmus_paper/forced_health.rb
litmus_paper-0.6.0 lib/litmus_paper/forced_health.rb
litmus_paper-0.5.0 lib/litmus_paper/forced_health.rb
litmus_paper-0.4.0 lib/litmus_paper/forced_health.rb
litmus_paper-0.3.5 lib/litmus_paper/forced_health.rb
litmus_paper-0.3.3 lib/litmus_paper/forced_health.rb
litmus_paper-0.3.2 lib/litmus_paper/forced_health.rb
litmus_paper-0.3.1 lib/litmus_paper/forced_health.rb
litmus_paper-0.3.0 lib/litmus_paper/forced_health.rb
litmus_paper-0.2.2 lib/litmus_paper/forced_health.rb
litmus_paper-0.2.1 lib/litmus_paper/forced_health.rb
litmus_paper-0.2.0 lib/litmus_paper/forced_health.rb
litmus_paper-0.1.0 lib/litmus_paper/forced_health.rb
litmus_paper-0.0.3 lib/litmus_paper/forced_health.rb