Class: StatusPageRuby::Pages::Github
- Defined in:
- lib/status_page_ruby/pages/github.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#status ⇒ Object
10 11 12 |
# File 'lib/status_page_ruby/pages/github.rb', line 10 def status @status ||= status_element.text.strip end |
#time ⇒ Object
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 |