class Dpd::Shipping::NormalpaketService

Attributes

flex[R]

Public Instance Methods

cod=(cod) click to toggle source
# File lib/dpd_shipping/service/normalpaket.rb, line 7
def cod=(cod)
  raise "COD and Flex cannot be combined" if flex?
  @cod_amount = cod
end
flex=(flex) click to toggle source
# File lib/dpd_shipping/service/normalpaket.rb, line 12
def flex=(flex)
  raise "Flex and COD cannot be combined" if cod?
  @flex = flex
end
flex?() click to toggle source
# File lib/dpd_shipping/service/normalpaket.rb, line 17
def flex?
  !!@flex
end
service_type() click to toggle source
# File lib/dpd_shipping/service/normalpaket.rb, line 21
def service_type
  "dpdNormalpaket" + (cod? ? 'COD' : '') + (flex? ? 'Flex' : '')
end