Class: Stumb::StampSheet
- Inherits:
-
Object
- Object
- Stumb::StampSheet
- Defined in:
- lib/stumb/stamp_sheet.rb
Instance Attribute Summary collapse
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(store) ⇒ StampSheet
constructor
A new instance of StampSheet.
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
#store ⇒ Object (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 |