Class: Ezid::ServerStatusResponse Private
- Defined in:
- lib/ezid/responses/server_status_response.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A response to an EZID status request
Constant Summary collapse
- SUBSYSTEMS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%w( noid ldap datacite )
Constants inherited from Response
Response::ERROR, Response::SUCCESS
Instance Method Summary collapse
- #subsystems ⇒ Object private
- #up? ⇒ Boolean private
Methods inherited from Response
#content, #error?, #error_class, #exception, #initialize, #message, #outcome, #status, #status_line, #success?, #uri_path
Constructor Details
This class inherits a constructor from Ezid::Response
Instance Method Details
#subsystems ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 19 20 21 22 |
# File 'lib/ezid/responses/server_status_response.rb', line 16 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 |
#up? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/ezid/responses/server_status_response.rb', line 24 def up? success? end |