Class: Returnly::Refund::ReturnItemRestockPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/returnly/refund/return_item_restock_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(refund) ⇒ ReturnItemRestockPolicy

Returns a new instance of ReturnItemRestockPolicy.



6
7
8
# File 'lib/returnly/refund/return_item_restock_policy.rb', line 6

def initialize(refund)
  self.refund = refund
end

Instance Attribute Details

#refundObject

Returns the value of attribute refund.



4
5
6
# File 'lib/returnly/refund/return_item_restock_policy.rb', line 4

def refund
  @refund
end

Instance Method Details

#should_return_item?(return_item) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/returnly/refund/return_item_restock_policy.rb', line 10

def should_return_item?(return_item)
  return_item.resellable?
end