Class: RoadForest::Application::InterfaceBuilder
- Inherits:
-
Object
- Object
- RoadForest::Application::InterfaceBuilder
- Defined in:
- lib/roadforest/application/route-adapter.rb
Instance Attribute Summary collapse
-
#interface_class ⇒ Object
readonly
Returns the value of attribute interface_class.
Instance Method Summary collapse
- #call(name, params, router, services) ⇒ Object
-
#initialize(interface_class) ⇒ InterfaceBuilder
constructor
A new instance of InterfaceBuilder.
Constructor Details
#initialize(interface_class) ⇒ InterfaceBuilder
Returns a new instance of InterfaceBuilder.
144 145 146 |
# File 'lib/roadforest/application/route-adapter.rb', line 144 def initialize(interface_class) @interface_class = interface_class end |
Instance Attribute Details
#interface_class ⇒ Object (readonly)
Returns the value of attribute interface_class.
143 144 145 |
# File 'lib/roadforest/application/route-adapter.rb', line 143 def interface_class @interface_class end |
Instance Method Details
#call(name, params, router, services) ⇒ Object
148 149 150 |
# File 'lib/roadforest/application/route-adapter.rb', line 148 def call(name, params, router, services) interface_class.new(name, params, router, services) end |