Class: Hotspot::FreeWifi

Inherits:
Hotspot show all
Defined in:
lib/hl.rb

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

#authObject



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

Returns:

  • (Boolean)


112
113
114
# File 'lib/hl.rb', line 112

def hotspot?
    info.host == "wifi.free.fr"
end