Sha256: 42254032f33d993fc062a7517e9e36d024a583f33fa1eca3a9fb4e8df580acca

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true

module ProxES
  class ClusterHealthStatusCheck < StatusCheck
    def value
      source_result['status']['status']
    end

    def check
      return true if required_value.blank?

      value == required_value
    end

    def formatted(val = nil)
      (val || value).titlecase
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
proxes-0.10.1 lib/proxes/models/status_checks/cluster_health_status_check.rb