lib/nzbmatrix/client.rb in nzbmatrix-0.0.2 vs lib/nzbmatrix/client.rb in nzbmatrix-0.0.3
- old
+ new
@@ -38,10 +38,10 @@
# :searchin => SEARCH FIELD default name. possible options: name, subject, weblink
def search(search_term, opts = {})
params = { :search => search_term }.merge(opts).merge(@creds)
response = RestClient.get("#{BASE_URL}/search.php", :params => params)
@parser.parse(response).map do |parsed|
- SearchResult.new(parsed)
+ SearchResult.new(parsed, self)
end
end
def account
RestClient.get "#{BASE_URL}/account.php", :params => @creds