Class: Hotspot::FreeWifi
Instance Method Summary collapse
Methods inherited from Hotspot
#connect?, #get, hotspots, #info, inherited, #initialize, #login_url, #login_url!, #params, #post, #redirect?, #uri_test
Constructor Details
This class inherits a constructor from Hotspot::Hotspot
Instance Method Details
#auth ⇒ Object
116 117 118 119 |
# File 'lib/hl.rb', line 116 def auth query = params.merge!({login: @user, password: @password, submit: "Valider"}) post("https://wifi.free.fr/Auth", query) end |
#hotspot? ⇒ Boolean
112 113 114 |
# File 'lib/hl.rb', line 112 def hotspot? info.host == "wifi.free.fr" end |