-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a6f76e
commit e60276f
Showing
10 changed files
with
50 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
require_relative "request" | ||
require_relative "../responses/status_response" | ||
|
||
module Ezid | ||
class ServerStatusRequest < Request | ||
self.http_method = GET | ||
self.path = "/status" | ||
|
||
attr_reader :subsystems | ||
|
||
def path | ||
"/status" | ||
def initialize(client, *args) | ||
@subsystems = args | ||
super | ||
end | ||
|
||
def query | ||
"subsystems=#{subsystems.join(',')}" | ||
end | ||
|
||
def handle_args(*args) | ||
@subsystems = args | ||
end | ||
|
||
def handle_response(http_response) | ||
Status.new(http_response) | ||
end | ||
|
||
def authentication_required? | ||
false | ||
end | ||
|
||
def response_class | ||
StatusResponse | ||
end | ||
end | ||
end |
File renamed without changes.
File renamed without changes.