Module: Ovh::Api::Models::TelephonyTokenExpirationEnum

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

Constant Summary collapse

N1_DAY =
'1 day'
N1_HOUR =
'1 hour'
N30_DAYS =
'30 days'
N5_MINUTES =
'5 minutes'
UNLIMITED =
'unlimited'

Class Method Summary collapse

Class Method Details

.allObject



17
18
19
20
21
22
23
24
25
# File 'lib/ovh-api/models/telephony_token_expiration_enum.rb', line 17

def self.all
  @all ||= [
    N1_DAY,
    N1_HOUR,
    N30_DAYS,
    N5_MINUTES,
    UNLIMITED,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/ovh-api/models/telephony_token_expiration_enum.rb', line 27

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