Class: MeteoPl::Utility::MobileMeteoGraph
- 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
Constructor Details
This class inherits a constructor from MeteoPl::Utility::Graph
Instance Method Details
#uri ⇒ Object
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 |