class Tienda::Errors::NotEnoughStock

Public Instance Methods

available_stock() click to toggle source
# File lib/tienda/errors/not_enough_stock.rb, line 4
def available_stock
  @options[:ordered_item].stock
end
requested_stock() click to toggle source
# File lib/tienda/errors/not_enough_stock.rb, line 8
def requested_stock
  @options[:requested_stock]
end