Class: Iloxx::Shipping::ExpressService

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

Constant Summary collapse

VALID_TIMES =
[
  10,
  12,
  18,
  "Samstag12"
]

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

#timeObject

Returns the value of attribute time.



4
5
6
# File 'lib/iloxx_shipping/service/express.rb', line 4

def time
  @time
end

Instance Method Details

#service_typeObject



18
19
20
# File 'lib/iloxx_shipping/service/express.rb', line 18

def service_type
  "dpdExpress" + @time + (cod? ? 'COD' : '')
end