Module: Ovh::Api::Models::OverTheBoxTunnelModeEnum

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

Constant Summary collapse

GLORYTUN =
'glorytun'
GLORYTUN_HYBRID =
'glorytun_hybrid'
GLORYTUN_MUD =
'glorytun_mud'

Class Method Summary collapse

Class Method Details

.allObject



15
16
17
18
19
20
21
# File 'lib/ovh-api/models/over_the_box_tunnel_mode_enum.rb', line 15

def self.all
  @all ||= [
    GLORYTUN,
    GLORYTUN_HYBRID,
    GLORYTUN_MUD,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/ovh-api/models/over_the_box_tunnel_mode_enum.rb', line 23

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