Module: Ovh::Api::Models::DedicatedCloudBillingTypeEnum

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

Constant Summary collapse

DEMO =
'demo'
MONTHLY =
'monthly'

Class Method Summary collapse

Class Method Details

.allObject



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

def self.all
  @all ||= [
    DEMO,
    MONTHLY,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


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

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