Class: SimpleEndpoint::Controller::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_endpoint/controller/builder.rb

Instance Method Summary collapse

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_hObject



11
12
13
# File 'lib/simple_endpoint/controller/builder.rb', line 11

def to_h
  @config
end