Class: Carbon::ExternalFileSyncStatuses
- Inherits:
-
Object
- Object
- Carbon::ExternalFileSyncStatuses
- Defined in:
- lib/carbon_ruby_sdk/models/external_file_sync_statuses.rb
Constant Summary collapse
- DELAYED =
"DELAYED".freeze
- QUEUED_FOR_SYNC =
"QUEUED_FOR_SYNC".freeze
- SYNCING =
"SYNCING".freeze
- READY =
"READY".freeze
- SYNC_ERROR =
"SYNC_ERROR".freeze
- EVALUATING_RESYNC =
"EVALUATING_RESYNC".freeze
- RATE_LIMITED =
"RATE_LIMITED".freeze
- SYNC_ABORTED =
"SYNC_ABORTED".freeze
- QUEUED_FOR_OCR =
"QUEUED_FOR_OCR".freeze
- READY_TO_SYNC =
"READY_TO_SYNC".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
25 26 27 |
# File 'lib/carbon_ruby_sdk/models/external_file_sync_statuses.rb', line 25 def self.all_vars @all_vars ||= [DELAYED, QUEUED_FOR_SYNC, SYNCING, READY, SYNC_ERROR, EVALUATING_RESYNC, RATE_LIMITED, SYNC_ABORTED, QUEUED_FOR_OCR, READY_TO_SYNC].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
32 33 34 |
# File 'lib/carbon_ruby_sdk/models/external_file_sync_statuses.rb', line 32 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
39 40 41 42 |
# File 'lib/carbon_ruby_sdk/models/external_file_sync_statuses.rb', line 39 def build_from_hash(value) return value if ExternalFileSyncStatuses.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ExternalFileSyncStatuses" end |