module GathererSetParser::QueryString
Public Class Methods
new(set)
click to toggle source
# File lib/gatherer_set_parser/query_string.rb, line 4 def initialize set @set_name = set end
Public Instance Methods
escaped_set()
click to toggle source
# File lib/gatherer_set_parser/query_string.rb, line 8 def escaped_set @query_string ||= URI.escape set_name end
gatherer_url(page)
click to toggle source
# File lib/gatherer_set_parser/query_string.rb, line 20 def gatherer_url page url + query_string + "&page=#{page}" end
query_string()
click to toggle source
# File lib/gatherer_set_parser/query_string.rb, line 12 def query_string "output=standard&action=advanced&set=[%22#{escaped_set}%22]" end
url()
click to toggle source
# File lib/gatherer_set_parser/query_string.rb, line 16 def url "http://gatherer.wizards.com/Pages/Search/Default.aspx?" end