lib/inpost_uk_api/resources/base.rb
# _retailer is a internal class variable to make sure that all instances
# inherit from Base class share the same variable.
_retailer is a internal class variable to make sure that all instances
inherit from Base class share the same variable.
_retailer is a internal class variable to make sure that all instances inherit from Base class share the same variable .
def retailer
        if superclass == ActiveResource::Base
          if _retailer_defined?
            _retailer
          else
            _retailer = InPostUKAPI.config.retailer
          end
        else
          superclass.retailer
        end
      end
def retailer if superclass == ActiveResource :: Base if _retailer_defined? _retailer else _retailer = InPostUKAPI . config . retailer end else superclass . retailer end end
_retailer is a internal class variable to make sure that all instances
inherit from Base class share the same variable.
_retailer is a internal class variable to make sure that all instances inherit from Base class share the same variable .