lib/xiv_lodestone/lodestone_server.rb
def fetch_server_status(page)
      rego = Helper.open_registration_status
      page.xpath('//td').each_slice(2) do |elem|
        @list[elem[0].text.strip.downcase.to_sym] = Server.new(
          elem[0].text.strip,
          elem[1].text.strip,
          rego.css('div.area_inner_cont').text[/○ #{elem[0].text.strip}/] ? "Open" : "Closed")
      end
    end
# Fills the @server hash with each servers status

Fills the @server hash with each servers status
Fills the @server hash with each servers status
def fetch_server_status(page)
      rego = Helper.open_registration_status
      page.xpath('//td').each_slice(2) do |elem|
        @list[elem[0].text.strip.downcase.to_sym] = Server.new(
          elem[0].text.strip,
          elem[1].text.strip,
          rego.css('div.area_inner_cont').text[/○ #{elem[0].text.strip}/] ? "Open" : "Closed")
      end
    end
def fetch_server_status ( page ) rego = Helper . open_registration_status page . xpath ( '//td' ) . each_slice ( 2 ) do | elem | @list [ elem [ 0 ] . text . strip . downcase . to_sym ] = Server . new ( elem [ 0 ] . text . strip , elem [ 1 ] . text . strip , rego . css ( 'div.area_inner_cont' ) . text [ / ○ #{ el em[0 ] . t e xt.s t rip}/ ] ? " pen" : " losed")
 end end
Fills the @server hash with each servers status
Fills the @server hash with each servers status
page