Class: Carbon::WhiteLabelInputDataSourceType

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.all_varsObject



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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