Class: Iloxx::Shipping::RetoureService

Inherits:
Service
  • Object
show all
Defined in:
lib/iloxx_shipping/service/retoure.rb

Instance Attribute Summary collapse

Attributes inherited from Service

#cod_amount

Instance Method Summary collapse

Methods inherited from Service

#cod?, #initialize

Constructor Details

This class inherits a constructor from Iloxx::Shipping::Service

Instance Attribute Details

#pickupObject

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

Returns:

  • (Boolean)


6
7
8
# File 'lib/iloxx_shipping/service/retoure.rb', line 6

def pickup?
  !!@pickup
end

#service_typeObject



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