Sha256: 3641f74c9d6fb74cc9d1581419312b6b2f2d38eddfe35051a310365f81a19acd

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

module GmanClient
  module Api
    # HealthCheck API
    module HealthCheck
      # Retrieve a health check
      def health_check
        response = request.api.v1.health_check.get

        response.to_h[:health_check] == 'Passed'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gman_client-0.4.1 lib/gman_client/api/health_check.rb
gman_client-0.4.0 lib/gman_client/api/health_check.rb