Class: Workarea::Fulfillment::Policies::Base

Inherits:
Object
  • Object
show all
Defined in:
app/models/workarea/fulfillment/policies/base.rb

Direct Known Subclasses

Download, Shipping

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sku) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'app/models/workarea/fulfillment/policies/base.rb', line 7

def initialize(sku)
  @sku = sku
end

Instance Attribute Details

#skuObject (readonly)

Returns the value of attribute sku.



5
6
7
# File 'app/models/workarea/fulfillment/policies/base.rb', line 5

def sku
  @sku
end

Instance Method Details

#process(order_item:, fulfillment: nil) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'app/models/workarea/fulfillment/policies/base.rb', line 11

def process(order_item:, fulfillment: nil)
  raise(NotImplementedError)
end