Class: Fastlane::Plugin::GitHubStatus::Client
- Inherits:
-
Object
- Object
- Fastlane::Plugin::GitHubStatus::Client
- Defined in:
- lib/fastlane/plugin/github_status/client.rb
Overview
Calls GitHub’s status API and returns model objects to represent the data
Constant Summary collapse
- API_ENDPOINT =
'https://status.github.com/api'.freeze
Instance Method Summary collapse
-
#last_message ⇒ Object
Message representing the last status update from GitHub.
Instance Method Details
#last_message ⇒ Object
Returns Message representing the last status update from GitHub.
9 10 11 12 |
# File 'lib/fastlane/plugin/github_status/client.rb', line 9 def = JSON.parse(open("#{API_ENDPOINT}/last-message.json").read) Plugin::GitHubStatus::Message.new() end |