class Access::Store

Public Class Methods

find(store_key, options = {}) click to toggle source
# File lib/access/store.rb, line 9
def self.find(store_key, options = {})
  Access::Api.new.find_store store_key, options
end
national(options = {}) click to toggle source
# File lib/access/store.rb, line 13
def self.national(options = {})
  Access::Api.new.national_stores options
end
new(values) click to toggle source
# File lib/access/store.rb, line 21
def initialize(values)
  @used_fields = []
  set_up_methods(values)
  set_values(values)
  @links = Access::Link.new(@links) if @links
  @store_categories = Access::Category.process_batch(@store_categories) if @store_categories
  @physical_location = Access::Location.new(@physical_location) if @physical_location
end
process_batch(chunk) click to toggle source
# File lib/access/store.rb, line 17
def self.process_batch(chunk)
  chunk.map { |store| new(store) }
end