Sha256: bbbb6a4290480d53f5b1df16f4262138601157f921a17c323ca33d7e05bf4413

Contents?: true

Size: 540 Bytes

Versions: 12

Compression:

Stored size: 540 Bytes

Contents

# http://johnnunemaker.com/httparty/
# https://github.com/jnunemaker/httparty
require 'httparty'


module Utter
  module Auth
    class Consumer 
      def initialize(app, opts={}, params={})
	@app 	= app
	@opts 	= opts 
	@params 	= params 
      end

      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
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
utter-1.9.0 lib/generators/auth_consumer_ext_gem_generator.rb
utter-1.8.0 lib/generators/auth_consumer_ext_gem_generator.rb
utter-1.7.0 lib/generators/auth_consumer_ext_gem_generator.rb
utter-1.6.0 lib/generators/auth_consumer_ext_gem_generator.rb
utter-1.5.0 lib/generators/auth_consumer_ext_gem_generator.rb
utter-1.4.0 lib/generators/auth_consumer_ext_gem_generator.rb
utter-1.3.2 lib/generators/auth_consumer_ext_gem_generator.rb
utter-1.3.1 lib/generators/auth_consumer_ext_gem_generator.rb
utter-1.3.0 lib/generators/auth_consumer_ext_gem_generator.rb
utter-1.2.0 lib/generators/auth_consumer_ext_gem_generator.rb
utter-1.1.0 lib/generators/auth_consumer_ext_gem_generator.rb
utter-1.0.23 lib/generators/auth_consumer_ext_gem_generator.rb