Sha256: 2933d7d3ebe1659b4950815a80863dde4e4b617c60d3819ff8ad7bcfa0490cd0

Contents?: true

Size: 330 Bytes

Versions: 22

Compression:

Stored size: 330 Bytes

Contents

module Ruboty
  class AdapterBuilder
    def self.adapter_classes
      @adapter_classes ||= []
    end

    attr_reader :robot

    def initialize(robot)
      @robot = robot
    end

    def build
      adapter_class.new(robot)
    end

    private

    def adapter_class
      self.class.adapter_classes.last
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ruboty-1.3.1 lib/ruboty/adapter_builder.rb
ruboty-1.3.0 lib/ruboty/adapter_builder.rb
ruboty-1.2.4 lib/ruboty/adapter_builder.rb
ruboty-1.2.3 lib/ruboty/adapter_builder.rb
ruboty-1.2.2 lib/ruboty/adapter_builder.rb
ruboty-1.2.1 lib/ruboty/adapter_builder.rb
ruboty-1.2.0 lib/ruboty/adapter_builder.rb
ruboty-1.1.9 lib/ruboty/adapter_builder.rb
ruboty-1.1.8 lib/ruboty/adapter_builder.rb
ruboty-1.1.7 lib/ruboty/adapter_builder.rb
ruboty-1.1.6 lib/ruboty/adapter_builder.rb
ruboty-1.1.5 lib/ruboty/adapter_builder.rb
ruboty-1.1.4 lib/ruboty/adapter_builder.rb
ruboty-1.1.3 lib/ruboty/adapter_builder.rb
ruboty-1.1.2 lib/ruboty/adapter_builder.rb
ruboty-1.1.1 lib/ruboty/adapter_builder.rb
ruboty-1.1.0 lib/ruboty/adapter_builder.rb
ruboty-1.0.4 lib/ruboty/adapter_builder.rb
ruboty-1.0.3 lib/ruboty/adapter_builder.rb
ruboty-1.0.2 lib/ruboty/adapter_builder.rb