Class: SimpleEndpoint::Controller::Builder
- Inherits:
-
Object
- Object
- SimpleEndpoint::Controller::Builder
- Defined in:
- lib/simple_endpoint/controller/builder.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ Builder
constructor
A new instance of Builder.
- #to_h ⇒ Object
Constructor Details
#initialize(&block) ⇒ Builder
Returns a new instance of Builder.
6 7 8 9 |
# File 'lib/simple_endpoint/controller/builder.rb', line 6 def initialize(&block) @config = {} instance_exec(&block) end |
Instance Method Details
#to_h ⇒ Object
11 12 13 |
# File 'lib/simple_endpoint/controller/builder.rb', line 11 def to_h @config end |