Sha256: a21eaec9dd26be26c7244ff9d5d1312917382b4041dda770caa3a09915bff029
Contents?: true
Size: 495 Bytes
Versions: 4
Compression:
Stored size: 495 Bytes
Contents
require 'virtus' require 'json' require 'active_support' require 'moysklad/version' require 'logger' module Moysklad mattr_accessor :custom_logger %w{ entities error resources client universe }.each do |m| require_relative "moysklad/#{m}" end def self.logger= value self.custom_logger = value end def self.logger return custom_logger if custom_logger if defined? Rails Rails.logger else Logger.new STDERR end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
moysklad-0.3.4 | lib/moysklad.rb |
moysklad-0.3.3 | lib/moysklad.rb |
moysklad-0.3.2 | lib/moysklad.rb |
moysklad-0.3.1 | lib/moysklad.rb |