Class: Zypper::Onlinesearch::Request::Page::Opensuse
- Inherits:
-
PageRequest
- Object
- PageRequest
- Zypper::Onlinesearch::Request::Page::Opensuse
- Defined in:
- lib/zypper/onlinesearch/request.rb
Overview
Handle the page on openSUSE.
Constant Summary collapse
- URL =
"https://software.opensuse.org/package/"
Constants inherited from PageRequest
Instance Attribute Summary
Attributes inherited from PageRequest
Instance Method Summary collapse
-
#initialize(query, cache, timeout, cookies = []) ⇒ Opensuse
constructor
A new instance of Opensuse.
- #uri ⇒ Object
Methods inherited from PageRequest
#available?, #cache!, #cache_time, #forbidden?, #not_found?, #redirected?, #redirected_to, #status, #timeout?, #to_data
Constructor Details
#initialize(query, cache, timeout, cookies = []) ⇒ Opensuse
Returns a new instance of Opensuse.
180 181 182 183 |
# File 'lib/zypper/onlinesearch/request.rb', line 180 def initialize(query, cache, timeout, = []) super query, cache, timeout, << "baseproject=ALL;search_devel=true;search_debug=false;search_lang=false" end |
Instance Method Details
#uri ⇒ Object
185 186 187 |
# File 'lib/zypper/onlinesearch/request.rb', line 185 def uri URI(URL + URI.encode(@query)) end |