class Arbitrage::CLI
CLI
Controller
Attributes
market_value[RW]
product[RW]
profit[RW]
validator[RW]
Public Class Methods
new()
click to toggle source
# File lib/arbitrage/cli.rb, line 5 def initialize self.validator = Arbitrage::InputValidator.new self.product = Arbitrage::Product.new self.profit = Arbitrage::Profit.new(self.product) end
Public Instance Methods
call()
click to toggle source
# File lib/arbitrage/cli.rb, line 11 def call puts "What's your zipcode?" self.product.get_zipcode self.product.get_product puts "Details on the product you've selected:" puts "______________________________________" puts self.product.display_product_details puts "______________________________________" self.profit.list_opportunity #puts "your potential profit on the sale of #{self.product.name} is $#{gross_profit}" end