Class: GithubStatus::API
- Inherits:
-
Object
- Object
- GithubStatus::API
- Defined in:
- lib/github_status/api.rb
Constant Summary collapse
- API_URL =
"https://status.github.com/api.json"- STATUS_URL =
"https://status.github.com/api/status.json"- LAST_MESSAGE_URL =
"https://status.github.com/api/last-message.json"- MESSAGES_URL =
"https://status.github.com/api/messages.json"
Class Method Summary collapse
Class Method Details
.api ⇒ Object
11 12 13 |
# File 'lib/github_status/api.rb', line 11 def self.api get(API_URL) end |
.current_status ⇒ Object
15 16 17 |
# File 'lib/github_status/api.rb', line 15 def self.current_status get(STATUS_URL) end |
.last_message ⇒ Object
19 20 21 |
# File 'lib/github_status/api.rb', line 19 def self. get(LAST_MESSAGE_URL) end |
.messages ⇒ Object
23 24 25 |
# File 'lib/github_status/api.rb', line 23 def self. get(MESSAGES_URL) end |