Class: Carbon::WhiteLabelInputDataSourceType
- Inherits:
-
Object
- Object
- Carbon::WhiteLabelInputDataSourceType
- Defined in:
- lib/carbon_ruby_sdk/models/white_label_input_data_source_type.rb
Constant Summary collapse
- INTERCOM =
"INTERCOM".freeze
- NOTION =
"NOTION".freeze
- SLACK =
"SLACK".freeze
- ZENDESK =
"ZENDESK".freeze
- OUTLOOK =
"OUTLOOK".freeze
- GMAIL =
"GMAIL".freeze
- SERVICENOW =
"SERVICENOW".freeze
- SALESFORCE =
"SALESFORCE".freeze
- ZOTERO =
"ZOTERO".freeze
- BOX =
"BOX".freeze
- CONFLUENCE =
"CONFLUENCE".freeze
- DROPBOX =
"DROPBOX".freeze
- GOOGLE_CLOUD_STORAGE =
"GOOGLE_CLOUD_STORAGE".freeze
- GONG =
"GONG".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
29 30 31 |
# File 'lib/carbon_ruby_sdk/models/white_label_input_data_source_type.rb', line 29 def self.all_vars @all_vars ||= [INTERCOM, NOTION, SLACK, ZENDESK, OUTLOOK, GMAIL, SERVICENOW, SALESFORCE, ZOTERO, BOX, CONFLUENCE, DROPBOX, GOOGLE_CLOUD_STORAGE, GONG].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
36 37 38 |
# File 'lib/carbon_ruby_sdk/models/white_label_input_data_source_type.rb', line 36 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
43 44 45 46 |
# File 'lib/carbon_ruby_sdk/models/white_label_input_data_source_type.rb', line 43 def build_from_hash(value) return value if WhiteLabelInputDataSourceType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #WhiteLabelInputDataSourceType" end |