Class: Ezid::Status Private
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Ezid::Status
- Defined in:
- lib/ezid/status.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 )
Instance Method Summary collapse
- #subsystems ⇒ Object private
- #up? ⇒ Boolean private
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/status.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/status.rb', line 24 def up? success? end |