Sha256: 069d331e899a4c4bc1e4dc13bd522cc24328f12d6cc82f841c71a3564b8c1ff0
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
# Flexmlsapi require 'rubygems' require 'curb' require 'json' require 'logger' require File.expand_path('../flexmls_api/version', __FILE__) require File.expand_path('../flexmls_api/configuration', __FILE__) require File.expand_path('../flexmls_api/authentication', __FILE__) require File.expand_path('../flexmls_api/paginate', __FILE__) require File.expand_path('../flexmls_api/request', __FILE__) require File.expand_path('../flexmls_api/client', __FILE__) require File.expand_path('../flexmls_api/faraday', __FILE__) require File.expand_path('../flexmls_api/models', __FILE__) module FlexmlsApi extend Configuration def self.logger if @logger.nil? @logger = Logger.new(STDOUT) @logger.level = Logger::INFO end @logger end def self.client(opts={}) Thread.current[:flexmls_api_client] ||= FlexmlsApi::Client.new(opts) end def self.method_missing(method, *args, &block) return super unless (client.respond_to?(method)) client.send(method, *args, &block) end def self.reset reset_configuration Thread.current[:flexmls_api_client] = nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flexmls_api-0.3.3 | lib/flexmls_api.rb |
flexmls_api-0.3.2 | lib/flexmls_api.rb |