Class: Returnly::Refund::ReturnItemRestockPolicy
- Inherits:
-
Object
- Object
- Returnly::Refund::ReturnItemRestockPolicy
- Defined in:
- lib/returnly/refund/return_item_restock_policy.rb
Instance Attribute Summary collapse
-
#refund ⇒ Object
Returns the value of attribute refund.
Instance Method Summary collapse
-
#initialize(refund) ⇒ ReturnItemRestockPolicy
constructor
A new instance of ReturnItemRestockPolicy.
- #should_return_item?(return_item) ⇒ Boolean
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
#refund ⇒ Object
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
10 11 12 |
# File 'lib/returnly/refund/return_item_restock_policy.rb', line 10 def should_return_item?(return_item) return_item.resellable? end |