Module: Ovh::Api::Models::OverTheBoxShippingMethodEnum

Defined in:
lib/ovh-api/models/over_the_box_shipping_method_enum.rb

Constant Summary collapse

DHL =
'dhl'
MONDIAL_RELAY =
'mondialRelay'

Class Method Summary collapse

Class Method Details

.allObject



14
15
16
17
18
19
# File 'lib/ovh-api/models/over_the_box_shipping_method_enum.rb', line 14

def self.all
  @all ||= [
    DHL,
    MONDIAL_RELAY,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/ovh-api/models/over_the_box_shipping_method_enum.rb', line 21

def self.valid?(value)
  all.include?(value)
end