Class: CodeStock::Mkurl

Inherits:
Object
  • Object
show all
Defined in:
lib/codestock/cdweb/lib/mkurl.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, params) ⇒ Mkurl

Returns a new instance of Mkurl.



14
15
16
17
# File 'lib/codestock/cdweb/lib/mkurl.rb', line 14

def initialize(path, params)
  @path = escape_path(path)
  @params = params
end

Instance Method Details

#inherit_query_sheadObject



23
24
25
# File 'lib/codestock/cdweb/lib/mkurl.rb', line 23

def inherit_query_shead
  create_url(query_param(true, true, false))
end

#inherit_query_shead_offsetObject



19
20
21
# File 'lib/codestock/cdweb/lib/mkurl.rb', line 19

def inherit_query_shead_offset
  create_url(query_param(true, true, true))
end

#inherit_sheadObject



27
28
29
# File 'lib/codestock/cdweb/lib/mkurl.rb', line 27

def inherit_shead
  create_url(query_param(false, true, false))
end