Class: Zitadel::Client::Models::OrganizationServiceOrganizationState

Inherits:
Object
  • Object
show all
Defined in:
lib/zitadel/client/models/organization_service_organization_state.rb

Constant Summary collapse

ORGANIZATION_STATE_UNSPECIFIED =
"ORGANIZATION_STATE_UNSPECIFIED".freeze
ORGANIZATION_STATE_ACTIVE =
"ORGANIZATION_STATE_ACTIVE".freeze
ORGANIZATION_STATE_INACTIVE =
"ORGANIZATION_STATE_INACTIVE".freeze
ORGANIZATION_STATE_REMOVED =
"ORGANIZATION_STATE_REMOVED".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



23
24
25
# File 'lib/zitadel/client/models/organization_service_organization_state.rb', line 23

def self.all_vars
  @all_vars ||= [ORGANIZATION_STATE_UNSPECIFIED, ORGANIZATION_STATE_ACTIVE, ORGANIZATION_STATE_INACTIVE, ORGANIZATION_STATE_REMOVED].freeze
end

.build_from_hash(value) ⇒ String

Builds the enum from string



30
31
32
# File 'lib/zitadel/client/models/organization_service_organization_state.rb', line 30

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string



37
38
39
40
# File 'lib/zitadel/client/models/organization_service_organization_state.rb', line 37

def build_from_hash(value)
  return value if OrganizationServiceOrganizationState.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::OrganizationServiceOrganizationState"
end