Sha256: 054ac4bdfe7580080c974e7476e729b72b4377e2c236bff33734e71744a7a20d
Contents?: true
Size: 785 Bytes
Versions: 4
Compression:
Stored size: 785 Bytes
Contents
module RSqoot module Merchant # Retrieve a list of merchants base on the following parameters # # @param [String] id (The merchant's ID, Use the Sqoot ID or ID for any supported namespace. Must supply namespace if we don't use Sqoot) # @param [String] namespace (One of the supported namespaces. Factual, Foursquare, Facebook, Google, CitySearch, Yelp.) def merchant(id, options={}) options = update_by_expire_time options if merchant_not_latest?(id) @rsqoot_merchant = get("merchants/#{id}", options, SqootMerchant) @rsqoot_merchant = @rsqoot_merchant.merchant if @rsqoot_merchant end logger({uri: sqoot_query_uri, records: [@rsqoot_merchant], type: 'merchants', opts: options}) @rsqoot_merchant end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rsqoot-0.5.5 | lib/rsqoot/merchant.rb |
rsqoot-0.5.4 | lib/rsqoot/merchant.rb |
rsqoot-0.5.3 | lib/rsqoot/merchant.rb |
rsqoot-0.5.2 | lib/rsqoot/merchant.rb |