Class: Access::Store
  
  
  
  
    
      Class Method Summary
      collapse
    
    
  
    
      Instance Method Summary
      collapse
    
    
  
  
  
  
  
  
  
  
  
  Methods included from MuchMeta
  #set_up_methods, #set_values
  Constructor Details
  
    
  
  
    #initialize(values)  ⇒ Store 
  
  
  
  
    
Returns a new instance of Store.
   
 
  
  
    | 
21
22
23
24
25
26
27
28 | # 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 | 
 
  
 
  
    Class Method Details
    
      
  
  
    .find(store_key, options = {})  ⇒ Object 
  
  
  
  
    | 
9
10
11 | # File 'lib/access/store.rb', line 9
def self.find(store_key, options = {})
  Access::Api.new.find_store store_key, options
end | 
 
    
      
  
  
    .national(options = {})  ⇒ Object 
  
  
  
  
    | 
13
14
15 | # File 'lib/access/store.rb', line 13
def self.national(options = {})
  Access::Api.new.national_stores options
end | 
 
    
      
  
  
    .process_batch(chunk)  ⇒ Object 
  
  
  
  
    | 
17
18
19 | # File 'lib/access/store.rb', line 17
def self.process_batch(chunk)
  chunk.map { |store| new(store) }
end | 
 
    
      
  
  
    .search(options = {})  ⇒ Object 
  
  
  
  
    | 
5
6
7 | # File 'lib/access/store.rb', line 5
def self.search(options = {})
  Access::Api.new.search_stores options
end |