Sha256: 92157ee586c404d6584ca3146f1cc4d62f6e2fbc5c47c5b462d3fd60aac5fa90

Contents?: true

Size: 626 Bytes

Versions: 8

Compression:

Stored size: 626 Bytes

Contents

module Access
  class Autocomplete

    def self.search(options = {})
      Access::Api.new.autocomplete options
    end

    def self.search_stores(options = {})
      Access::Api.new.autocomplete options.merge(resources: 'stores')
    end

    def self.search_categories(options = {})
      Access::Api.new.autocomplete options.merge(resources: 'categories')
    end

    def self.search_offers(options = {})
      Access::Api.new.autocomplete options.merge(resources: 'offers')
    end

    def self.search_locations(options = {})
      Access::Api.new.autocomplete options.merge(resources: 'locations')
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
access-1.1.7 lib/access/autocomplete.rb
access-1.1.6 lib/access/autocomplete.rb
access-1.1.5 lib/access/autocomplete.rb
access-1.1.4 lib/access/autocomplete.rb
access-1.1.3 lib/access/autocomplete.rb
access-1.1.2 lib/access/autocomplete.rb
access-1.1.1 lib/access/autocomplete.rb
access-1.1.0 lib/access/autocomplete.rb