Class: Stumb::StampSheet

Inherits:
Object
  • Object
show all
Defined in:
lib/stumb/stamp_sheet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(store) ⇒ StampSheet

Returns a new instance of StampSheet.



8
9
10
# File 'lib/stumb/stamp_sheet.rb', line 8

def initialize(store)
  @store = store
end

Instance Attribute Details

#storeObject (readonly)

Returns the value of attribute store.



6
7
8
# File 'lib/stumb/stamp_sheet.rb', line 6

def store
  @store
end

Instance Method Details

#call(env) ⇒ Object



12
13
14
# File 'lib/stumb/stamp_sheet.rb', line 12

def call(env)
  [200, {"Content-Type" => "text/html"}, template.render(self)]
end