module HornOfPlenty

rubocop:disable Style/SpaceAroundOperators

rubocop:disable Style/SpaceAroundOperators

rubocop:disable Style/OptionHash

Constants

VERSION

Public Class Methods

adapter_class(name) click to toggle source
# File lib/horn_of_plenty.rb, line 12
def self.adapter_class(name)
  adapter_classified = HornOfPlenty::CoreExt::String.camelize(name)
  adapter_class_name = "HornOfPlenty::Adapters::#{adapter_classified}"

  HornOfPlenty::CoreExt::String.constantize(adapter_class_name)
end
adapter_config(name) click to toggle source
# File lib/horn_of_plenty.rb, line 19
def self.adapter_config(name)
  adapter_class(name).config
end