Module: Ovh::Api::Models::TelephonyOvhPabxDialplanNumberPresentationEnum

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

Constant Summary collapse

ALIAS =
'alias'
BOTH =
'both'
CALLER =
'caller'

Class Method Summary collapse

Class Method Details

.allObject



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

def self.all
  @all ||= [
    ALIAS,
    BOTH,
    CALLER,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


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

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