Module: Ovh::Api::Models::SmsPriorityEnum

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

Constant Summary collapse

HIGH =
'high'
LOW =
'low'
MEDIUM =
'medium'
VERY_LOW =
'veryLow'

Class Method Summary collapse

Class Method Details

.allObject



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

def self.all
  @all ||= [
    HIGH,
    LOW,
    MEDIUM,
    VERY_LOW,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/ovh-api/models/sms_priority_enum.rb', line 25

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