Class: DaytonaApiClient::SandboxClass
- Inherits:
-
Object
- Object
- DaytonaApiClient::SandboxClass
- Defined in:
- lib/daytona_api_client/models/sandbox_class.rb
Constant Summary collapse
- LINUX_VM =
"linux-vm".freeze
- CONTAINER =
"container".freeze
- ANDROID =
"android".freeze
- WINDOWS =
"windows".freeze
- UNKNOWN_DEFAULT_OPEN_API =
"unknown_default_open_api".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.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
.all_vars ⇒ Object
24 25 26 |
# File 'lib/daytona_api_client/models/sandbox_class.rb', line 24 def self.all_vars @all_vars ||= [LINUX_VM, CONTAINER, ANDROID, WINDOWS, UNKNOWN_DEFAULT_OPEN_API].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
31 32 33 |
# File 'lib/daytona_api_client/models/sandbox_class.rb', line 31 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
38 39 40 41 |
# File 'lib/daytona_api_client/models/sandbox_class.rb', line 38 def build_from_hash(value) return value if SandboxClass.all_vars.include?(value) UNKNOWN_DEFAULT_OPEN_API end |