class AppleStoreInventoryChecker::Result
Attributes
city[RW]
distance[RW]
in_stock[W]
phone[RW]
product[RW]
product_id[R]
state[RW]
store[RW]
url[RW]
Public Class Methods
new(product_id:)
click to toggle source
# File lib/apple_store_inventory_checker/result.rb, line 15 def initialize(product_id:) @product_id = product_id end
Public Instance Methods
in_stock?()
click to toggle source
# File lib/apple_store_inventory_checker/result.rb, line 19 def in_stock? @in_stock end