Class: Ruboty::AdapterBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/ruboty/adapter_builder.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(robot) ⇒ AdapterBuilder



9
10
11
# File 'lib/ruboty/adapter_builder.rb', line 9

def initialize(robot)
  @robot = robot
end

Instance Attribute Details

#robotObject (readonly)

Returns the value of attribute robot



7
8
9
# File 'lib/ruboty/adapter_builder.rb', line 7

def robot
  @robot
end

Class Method Details

.adapter_classesObject



3
4
5
# File 'lib/ruboty/adapter_builder.rb', line 3

def self.adapter_classes
  @adapter_classes ||= []
end

Instance Method Details

#buildObject



13
14
15
# File 'lib/ruboty/adapter_builder.rb', line 13

def build
  adapter_class.new(robot)
end