class GHStatus::Status

Attributes

status[R]
updated_on[R]

Public Class Methods

current() click to toggle source
# File lib/ghstatus/status.rb, line 4
def current
  response = GHStatus::Api.status
  new(response['status'], response['last_updated'])
end
new(status, updated_on) click to toggle source
# File lib/ghstatus/status.rb, line 12
def initialize(status, updated_on)
  @status     = status
  @updated_on = DateTime.parse(updated_on)
end