Class: WishlistPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/discogs/wishlist/printers/wishlist_printer.rb

Instance Method Summary collapse

Constructor Details

#initialize(wishlist:, show_for_sale:) ⇒ WishlistPrinter

Returns a new instance of WishlistPrinter.



4
5
6
7
# File 'lib/discogs/wishlist/printers/wishlist_printer.rb', line 4

def initialize(wishlist:, show_for_sale:)
  @wishlist = wishlist
  @show_for_sale = show_for_sale
end

Instance Method Details

#print!Object



9
10
11
12
13
# File 'lib/discogs/wishlist/printers/wishlist_printer.rb', line 9

def print!
  populate_table

  puts table
end