Sha256: 07cf5bbb89fb6d34304f2dfac180dbac2b55b6cdc443825759f3fab8a05fd6f6

Contents?: true

Size: 1.09 KB

Versions: 98

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

98 entries across 79 versions & 3 rubygems

Version Path
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/octokit-4.22.0/lib/octokit/client/service_status.rb
octokit-4.22.0 lib/octokit/client/service_status.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/octokit-4.21.0/lib/octokit/client/service_status.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/octokit-4.21.0/lib/octokit/client/service_status.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/octokit-4.21.0/lib/octokit/client/service_status.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/octokit-4.21.0/lib/octokit/client/service_status.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/octokit-4.20.0/lib/octokit/client/service_status.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/octokit-4.21.0/lib/octokit/client/service_status.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/octokit-4.19.0/lib/octokit/client/service_status.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/octokit-4.21.0/lib/octokit/client/service_status.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/octokit-4.20.0/lib/octokit/client/service_status.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/octokit-4.19.0/lib/octokit/client/service_status.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/octokit-4.20.0/lib/octokit/client/service_status.rb
octokit-4.21.0 lib/octokit/client/service_status.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/octokit-4.19.0/lib/octokit/client/service_status.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/octokit-4.19.0/lib/octokit/client/service_status.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/octokit-4.20.0/lib/octokit/client/service_status.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/octokit-4.20.0/lib/octokit/client/service_status.rb
octokit-4.20.0 lib/octokit/client/service_status.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/octokit-4.19.0/lib/octokit/client/service_status.rb