Class: StatusPageRuby::Pages::Github

Inherits:
Base
  • Object
show all
Defined in:
lib/status_page_ruby/pages/github.rb

Instance Attribute Summary

Attributes inherited from Base

#document

Instance Method Summary collapse

Methods inherited from Base

open, #success?

Instance Method Details

#statusObject



10
11
12
# File 'lib/status_page_ruby/pages/github.rb', line 10

def status
  @status ||= status_element.text.strip
end

#timeObject



14
15
16
# File 'lib/status_page_ruby/pages/github.rb', line 14

def time
  DateTime.parse(time_element[:datetime].strip).to_time.to_i
end