Class: Milkode::Mkurl
- Inherits:
-
Object
- Object
- Milkode::Mkurl
- Defined in:
- lib/milkode/cdweb/lib/mkurl.rb
Instance Method Summary collapse
- #inherit_query_shead ⇒ Object
- #inherit_query_shead_offset ⇒ Object
- #inherit_query_shead_set_sort(sort_kind) ⇒ Object
- #inherit_shead ⇒ Object
-
#initialize(path, params) ⇒ Mkurl
constructor
A new instance of Mkurl.
Constructor Details
#initialize(path, params) ⇒ Mkurl
Returns a new instance of Mkurl.
13 14 15 16 |
# File 'lib/milkode/cdweb/lib/mkurl.rb', line 13 def initialize(path, params) @path = escape_path(path) @params = params end |
Instance Method Details
#inherit_query_shead ⇒ Object
22 23 24 |
# File 'lib/milkode/cdweb/lib/mkurl.rb', line 22 def inherit_query_shead create_url(query_param(true, true, false)) end |
#inherit_query_shead_offset ⇒ Object
18 19 20 |
# File 'lib/milkode/cdweb/lib/mkurl.rb', line 18 def inherit_query_shead_offset create_url(query_param(true, true, true)) end |
#inherit_query_shead_set_sort(sort_kind) ⇒ Object
26 27 28 |
# File 'lib/milkode/cdweb/lib/mkurl.rb', line 26 def inherit_query_shead_set_sort(sort_kind) create_url(query_param(true, true, false, sort_kind)) end |
#inherit_shead ⇒ Object
34 35 36 |
# File 'lib/milkode/cdweb/lib/mkurl.rb', line 34 def inherit_shead create_url(query_param(false, true, false)) end |