Class: PulpAnsibleClient::KeyringEnum
- Inherits:
-
Object
- Object
- PulpAnsibleClient::KeyringEnum
- Defined in:
- lib/pulp_ansible_client/models/keyring_enum.rb
Constant Summary collapse
- DATABASE_FIELDS_SYMMETRIC_KEY =
"/etc/pulp/certs/database_fields.symmetric.key".freeze
- PULP_WEBSERVER_CRT =
"/etc/pulp/certs/pulp_webserver.crt".freeze
- PULP_WEBSERVER_CSR =
"/etc/pulp/certs/pulp_webserver.csr".freeze
- PULP_WEBSERVER_KEY =
"/etc/pulp/certs/pulp_webserver.key".freeze
- TOKEN_PRIVATE_KEY_PEM =
"/etc/pulp/certs/token_private_key.pem".freeze
- TOKEN_PUBLIC_KEY_PEM =
"/etc/pulp/certs/token_public_key.pem".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
27 28 29 |
# File 'lib/pulp_ansible_client/models/keyring_enum.rb', line 27 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
34 35 36 37 38 |
# File 'lib/pulp_ansible_client/models/keyring_enum.rb', line 34 def build_from_hash(value) constantValues = KeyringEnum.constants.select { |c| KeyringEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #KeyringEnum" if constantValues.empty? value end |