Class: Registrar::ProfileBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/registrar/profile_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, callable) ⇒ ProfileBuilder

Returns a new instance of ProfileBuilder


3
4
5
6
# File 'lib/registrar/profile_builder.rb', line 3

def initialize(app, callable)
  @app = app
  @callable = callable
end

Instance Method Details

#call(env) ⇒ Object


8
9
10
11
# File 'lib/registrar/profile_builder.rb', line 8

def call(env)
  try_to_call(env)
  @app.call(env)
end