123456789_123456789_123456789_123456789_123456789_

Module: Octokit::Client::ServiceStatus

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/octokit/client/service_status.rb

Overview

Methods for the GitHub Status API

Constant Summary

Instance Method Summary

Instance Method Details

#github_statusSawyer::Resource

Returns the current system status

Returns:

  • (Sawyer::Resource)

    GitHub status

See Also:

[ GitHub ]

  
# File 'lib/octokit/client/service_status.rb', line 27

def github_status
  get(STATUS_ROOT)
end

#github_status_last_messageSawyer::Resource

Returns the last human communication, status, and timestamp.

Returns:

  • (Sawyer::Resource)

    GitHub status last message

See Also:

[ GitHub ]

  
# File 'lib/octokit/client/service_status.rb', line 35

def github_status_last_message
  get(COMPONENTS_ROOT).components.first
end

#github_status_messagesArray<Sawyer::Resource>

Returns the most recent human communications with status and timestamp.

Returns:

  • (Array<Sawyer::Resource>)

    GitHub status messages

See Also:

[ GitHub ]

  
# File 'lib/octokit/client/service_status.rb', line 43

def github_status_messages
  get(COMPONENTS_ROOT).components
end

#github_status_summary ⇒ <Sawyer::Resource>

Returns a summary with the current status and the last status messages.

Returns:

  • (<Sawyer::Resource>)

    GitHub status summary

See Also:

[ GitHub ]

  
# File 'lib/octokit/client/service_status.rb', line 19

def github_status_summary
  get(SUMMARY_ROOT)
end