Class: Skr::Location

Inherits:
Model
  • Object
show all
Defined in:
lib/skr/models/location.rb

Overview

A location that holds inventory

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.defaultLocation

Returns the location that’s specified by Configuration#default_location_code.

Returns:

  • (Location)

    the location that’s specified by Configuration#default_location_code



25
26
27
# File 'lib/skr/models/location.rb', line 25

def self.default
    Location.find_by_code( Skr.config.default_location_code )
end

Instance Method Details

#get_logoObject



20
21
22
# File 'lib/skr/models/location.rb', line 20

def 
    self..present? ? self. : Lanes::SystemSettings.config.
end