Class: Ellen::AdapterBuilder

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(robot, options) ⇒ AdapterBuilder

Returns a new instance of AdapterBuilder.



5
6
7
8
# File 'lib/ellen/adapter_builder.rb', line 5

def initialize(robot, options)
  @robot = robot
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

#robotObject (readonly)

Returns the value of attribute robot.



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

def robot
  @robot
end

Instance Method Details

#buildObject



10
11
12
# File 'lib/ellen/adapter_builder.rb', line 10

def build
  adapter_class.new(robot, options)
end