Class: Utter::Auth::Consumer

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/auth_consumer_ext_gem_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, opts = {}, params = {}) ⇒ Consumer

Returns a new instance of Consumer.



9
10
11
12
13
# File 'lib/generators/auth_consumer_ext_gem_generator.rb', line 9

def initialize(app, opts={}, params={})
  @app   = app
  @opts  = opts 
  @params  = params 
end

Instance Method Details

#call(env) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'lib/generators/auth_consumer_ext_gem_generator.rb', line 15

def call(env)
  #TODO use ssd to store the @params, before passing to the stack!
  # extract the id from 
  #include SSD
  p @params 
  p response = HTTParty.get('')
  @app.call(env)
  p @params 
  #TODO use ssd to store the @params, after passing to the stack!
end