module MyJohnDeere

Constants

AUTHORIZE_URL
DEFAULT_POST_HEADER
DEFAULT_REQUEST_HEADER
ENDPOINTS
ETAG_HEADER_KEY
JSON_CONTENT_HEADER_VALUE
REQUEST_METHODS_TO_PUT_PARAMS_IN_URL
SPECIAL_BODY_PARAMETERS
VERSION

Attributes

configuration[RW]

Public Class Methods

configure() { |configuration| ... } click to toggle source
# File lib/myjohndeere.rb, line 76
def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
  set_logger()
end
logger() click to toggle source
# File lib/myjohndeere.rb, line 53
def logger
  if @logger.nil? then
    set_logger()
  end
  @logger
end
set_logger() click to toggle source
# File lib/myjohndeere.rb, line 48
def set_logger()
  @logger ||= Logger.new(STDOUT)
  @logger.level = Logger.const_get(self.configuration.log_level.to_s.upcase)
end