module Ant::Bot::Adapter

Implements a factory singleton for building bot adapters

Public Class Methods

from_config(configs) click to toggle source

builds the abstract adapter

# File lib/ant/bot/adapters/base.rb, line 10
def self.from_config(configs)
  require_relative configs['name']
  resource(configs['name']).new(configs)
end