Class: Hola::Cart::Renderer

Inherits:
Object
  • Object
show all
Defined in:
lib/hola/cart/renderer.rb

Instance Method Summary collapse

Constructor Details

#initialize(cart) ⇒ Renderer

Returns a new instance of Renderer.



10
11
12
# File 'lib/hola/cart/renderer.rb', line 10

def initialize(cart)
  @cart = cart
end

Instance Method Details

#performObject



14
15
16
# File 'lib/hola/cart/renderer.rb', line 14

def perform
  table.render(:ascii)
end