Class: RagieRubySdk::ConnectorSource
- Inherits:
-
Object
- Object
- RagieRubySdk::ConnectorSource
- Defined in:
- lib/ragie_ruby_sdk/models/connector_source.rb
Constant Summary collapse
- BACKBLAZE =
"backblaze".freeze
- CONFLUENCE =
"confluence".freeze
- DROPBOX =
"dropbox".freeze
- FRESHDESK =
"freshdesk".freeze
- ONEDRIVE =
"onedrive".freeze
- GOOGLE_DRIVE =
"google_drive".freeze
- GMAIL =
"gmail".freeze
- INTERCOM =
"intercom".freeze
- NOTION =
"notion".freeze
- SALESFORCE =
"salesforce".freeze
- SHAREPOINT =
"sharepoint".freeze
- JIRA =
"jira".freeze
- SLACK =
"slack".freeze
- S3 =
"s3".freeze
- GCS =
"gcs".freeze
- HUBSPOT =
"hubspot".freeze
- ZENDESK =
"zendesk".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
36 37 38 |
# File 'lib/ragie_ruby_sdk/models/connector_source.rb', line 36 def self.all_vars @all_vars ||= [BACKBLAZE, CONFLUENCE, DROPBOX, FRESHDESK, ONEDRIVE, GOOGLE_DRIVE, GMAIL, INTERCOM, NOTION, SALESFORCE, SHAREPOINT, JIRA, SLACK, S3, GCS, HUBSPOT, ZENDESK].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
43 44 45 |
# File 'lib/ragie_ruby_sdk/models/connector_source.rb', line 43 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
50 51 52 53 |
# File 'lib/ragie_ruby_sdk/models/connector_source.rb', line 50 def build_from_hash(value) return value if ConnectorSource.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ConnectorSource" end |