Class: Stumb::Servlet

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/stumb/servlet.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.storage=(store) ⇒ Object



9
10
11
# File 'lib/stumb/servlet.rb', line 9

def self.storage=(store)
  @store = store
end

.store(req) ⇒ Object



5
6
7
# File 'lib/stumb/servlet.rb', line 5

def self.store(req)
  @store.store(Stamp.new(req.dup))
end

Instance Method Details

#stump!Object



13
14
15
# File 'lib/stumb/servlet.rb', line 13

def stump!
  self.class.store(@request)
end