Class: Workarea::Inventory::Policies::Ignore
- Inherits:
-
Base
- Object
- Base
- Workarea::Inventory::Policies::Ignore
show all
- Defined in:
- app/models/workarea/inventory/policies/ignore.rb
Instance Attribute Summary
Attributes inherited from Base
#sku
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#available_to_sell ⇒ Object
9
10
11
|
# File 'app/models/workarea/inventory/policies/ignore.rb', line 9
def available_to_sell
99999
end
|
#displayable? ⇒ Boolean
5
6
7
|
# File 'app/models/workarea/inventory/policies/ignore.rb', line 5
def displayable?
true
end
|
#purchase(quantity) ⇒ Object
13
14
15
16
|
# File 'app/models/workarea/inventory/policies/ignore.rb', line 13
def purchase(quantity)
sku.inc(purchased: quantity)
nil
end
|