Class: Iloxx::Shipping::RetoureService
- Defined in:
- lib/iloxx_shipping/service/retoure.rb
Instance Attribute Summary collapse
-
#pickup ⇒ Object
Returns the value of attribute pickup.
Attributes inherited from Service
Instance Method Summary collapse
Methods inherited from Service
Constructor Details
This class inherits a constructor from Iloxx::Shipping::Service
Instance Attribute Details
#pickup ⇒ Object
Returns the value of attribute pickup.
4 5 6 |
# File 'lib/iloxx_shipping/service/retoure.rb', line 4 def pickup @pickup end |
Instance Method Details
#pickup? ⇒ Boolean
6 7 8 |
# File 'lib/iloxx_shipping/service/retoure.rb', line 6 def pickup? !!@pickup end |
#service_type ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/iloxx_shipping/service/retoure.rb', line 10 def service_type if pickup? "dpdRetourePickup" else "dpdShopRetoure" end end |