class SpecsWatcher::Availability
Public Class Methods
search(options = {})
click to toggle source
# File lib/specs_watcher/availability.rb, line 7 def self.search(options = {}) new.search(options) end
Public Instance Methods
search(options)
click to toggle source
# File lib/specs_watcher/availability.rb, line 11 def search(options) raise SpecsWatcher::InvalidCategoryError, "'upc' and 'zip' are required" unless options[:upc] && options[:zip] response = make_request(path, options.merge({x: '0', y: '0'})) Parsers::Availability.parse(response.body) end
Private Instance Methods
path()
click to toggle source
# File lib/specs_watcher/availability.rb, line 19 def path '/showavail' end