Class: Candies::Server::Gif

Inherits:
Base
  • Object
show all
Defined in:
lib/candies/server/gif.rb

Instance Attribute Summary

Attributes inherited from Base

#request, #responders

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Candies::Server::Base

Instance Method Details

#call(env) ⇒ Object



5
6
7
8
9
# File 'lib/candies/server/gif.rb', line 5

def call(env)
  @request = Rack::Request.new(env)
  Candies.redis.set(key, @request.params.to_json) if !id.nil?
  [status, headers, body]
end