Class: Ruboty::AdapterBuilder
- Inherits:
-
Object
- Object
- Ruboty::AdapterBuilder
- Defined in:
- lib/ruboty/adapter_builder.rb
Instance Attribute Summary collapse
-
#robot ⇒ Object
readonly
Returns the value of attribute robot.
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(robot) ⇒ AdapterBuilder
constructor
A new instance of AdapterBuilder.
Constructor Details
#initialize(robot) ⇒ AdapterBuilder
Returns a new instance of AdapterBuilder.
9 10 11 |
# File 'lib/ruboty/adapter_builder.rb', line 9 def initialize(robot) @robot = robot end |
Instance Attribute Details
#robot ⇒ Object (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_classes ⇒ Object
3 4 5 |
# File 'lib/ruboty/adapter_builder.rb', line 3 def self.adapter_classes @adapter_classes ||= [] end |
Instance Method Details
#build ⇒ Object
13 14 15 |
# File 'lib/ruboty/adapter_builder.rb', line 13 def build adapter_class.new(robot) end |