class MyLogger
Public Class Methods
new()
click to toggle source
# File lib/pizza_app_logger.rb, line 8 def initialize @log = File.open("pizzalog.txt", "a") end
Public Instance Methods
cartInformation(cart)
click to toggle source
# File lib/pizza_app_logger.rb, line 37 def cartInformation(cart) @log.puts("cart : " + cart) @log.flush end
logInformation(login)
click to toggle source
# File lib/pizza_app_logger.rb, line 12 def logInformation(login) @log.puts("login : " + login) @log.flush end
orderInformation(order)
click to toggle source
# File lib/pizza_app_logger.rb, line 32 def orderInformation(order) @log.puts("order : " + order) @log.flush end
paymentInformation(payment)
click to toggle source
# File lib/pizza_app_logger.rb, line 43 def paymentInformation(payment) @log.puts("payment : " + payment) @log.flush end
productInformation(product)
click to toggle source
# File lib/pizza_app_logger.rb, line 27 def productInformation(product) @log.puts("product : " + product) @log.flush end
profileInformation(profile)
click to toggle source
# File lib/pizza_app_logger.rb, line 17 def profileInformation(profile) @log.puts("profile : " + profile) @log.flush end
storeInformation(store)
click to toggle source
# File lib/pizza_app_logger.rb, line 22 def storeInformation(store) @log.puts("store : " + store) @log.flush end