Sha256: 652a7c7dc6212dea8f536bc547f697ea31f8d3c49280782d62e50907364cd0ba
Contents?: true
Size: 553 Bytes
Versions: 24
Compression:
Stored size: 553 Bytes
Contents
require_relative "response" module Ezid # # A response to an EZID status request # @api private # class ServerStatusResponse < Response SUBSYSTEMS = %w( noid ldap datacite ) SUBSYSTEMS.each do |s| define_method(s) { subsystems[s] || "not checked" } end def subsystems return {} unless content[1] content[1].split(/\r?\n/).each_with_object({}) do |line, memo| subsystem, status = line.split(": ", 2) memo[subsystem] = status end end def up? success? end end end
Version data entries
24 entries across 24 versions & 1 rubygems