Class: Hotspot::UPPA

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



105
106
107
108
# File 'lib/hl.rb', line 105

def auth
    query = params.merge!({username: @user, password: @password, buttonClicked: 4, info_msg:nil, info_flag: 0, err_msg: nil, err_flag: 0})
    post("https://wism.univ-pau.fr/login.html", query)
end

#hotspot?Boolean

Returns:

  • (Boolean)


101
102
103
# File 'lib/hl.rb', line 101

def hotspot?
    info.host == "wism.univ-pau.fr"
end