Class: MeteoPl::Utility::MobileMeteoGraph

Inherits:
Graph
  • Object
show all
Defined in:
lib/meteo_pl/utility/graph.rb

Constant Summary collapse

FORM_URL =
'http://m.meteo.pl/search/pl'.freeze

Instance Attribute Summary

Attributes inherited from Graph

#location, #net_fetcher, #period

Instance Method Summary collapse

Methods inherited from Graph

#initialize

Constructor Details

This class inherits a constructor from MeteoPl::Utility::Graph

Instance Method Details

#uriObject



20
21
22
23
24
25
26
27
28
# File 'lib/meteo_pl/utility/graph.rb', line 20

def uri
  @uri ||= begin
    prepare_initial_request_uri
    fetch_initial_data
    return unless initial_response && initial_response.code == '302'
    fetch_graph_page
    fetch_graph_uri
  end
end