Sha256: 52c036019b6d74f4154d88f376a7c9607b8c480135603446c26e4ea9585209c0
Contents?: true
Size: 1.09 KB
Versions: 8
Compression:
Stored size: 1.09 KB
Contents
module Octokit class Client # Methods for the GitHub Status API # # @see https://status.github.com/api module ServiceStatus # Root for status API # @private STATUS_ROOT = 'https://status.github.com/api.json' # Returns the current system status # # @return [Sawyer::Resource] GitHub status # @see https://status.github.com/api#api-current-status def github_status get(STATUS_ROOT).rels[:status].get.data end # Returns the last human communication, status, and timestamp. # # @return [Sawyer::Resource] GitHub status last message # @see https://status.github.com/api#api-last-message def github_status_last_message get(STATUS_ROOT).rels[:last_message].get.data end # Returns the most recent human communications with status and timestamp. # # @return [Array<Sawyer::Resource>] GitHub status messages # @see https://status.github.com/api#api-recent-messages def github_status_messages get(STATUS_ROOT).rels[:messages].get.data end end end end
Version data entries
8 entries across 8 versions & 1 rubygems