r7kamura/ellen

View on GitHub
lib/ruboty/adapters/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Abstract class to be inherited from adapter class.
module Ruboty
  module Adapters
    class Base
      include Env::Validatable

      class << self
        def inherited(child_class)
          Ruboty::AdapterBuilder.adapter_classes << child_class
        end
      end

      attr_reader :robot

      def initialize(robot)
        @robot = robot
        validate
      end
    end
  end
end