Class: Svix::ConnectorKind
- Inherits:
-
Object
- Object
- Svix::ConnectorKind
- Defined in:
- lib/svix/models/connector_kind.rb
Constant Summary collapse
- CUSTOM =
"Custom".freeze
- AGENTIC_COMMERCE_PROTOCOL =
"AgenticCommerceProtocol".freeze
- CLOSE_CRM =
"CloseCRM".freeze
- CUSTOMER_IO =
"CustomerIO".freeze
- DISCORD =
"Discord".freeze
- HUBSPOT =
"Hubspot".freeze
- INNGEST =
"Inngest".freeze
- LOOPS =
"Loops".freeze
- OTEL =
"Otel".freeze
- RESEND =
"Resend".freeze
- SALESFORCE =
"Salesforce".freeze
- SEGMENT =
"Segment".freeze
- SENDGRID =
"Sendgrid".freeze
- SLACK =
"Slack".freeze
- TEAMS =
"Teams".freeze
- TRIGGER_DEV =
"TriggerDev".freeze
- WINDMILL =
"Windmill".freeze
- ZAPIER =
"Zapier".freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ ConnectorKind
constructor
A new instance of ConnectorKind.
- #serialize ⇒ Object
Constructor Details
#initialize(value) ⇒ ConnectorKind
Returns a new instance of ConnectorKind.
47 48 49 50 51 52 53 |
# File 'lib/svix/models/connector_kind.rb', line 47 def initialize(value) unless ConnectorKind.all_vars.include?(value) raise "Invalid ENUM value '#{value}' for class #ConnectorKind" end @value = value end |
Class Method Details
.all_vars ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/svix/models/connector_kind.rb', line 24 def self.all_vars @all_vars ||= [ CUSTOM, AGENTIC_COMMERCE_PROTOCOL, CLOSE_CRM, CUSTOMER_IO, DISCORD, HUBSPOT, INNGEST, LOOPS, OTEL, RESEND, SALESFORCE, SEGMENT, SENDGRID, SLACK, TEAMS, TRIGGER_DEV, WINDMILL, ZAPIER ].freeze end |
.deserialize(value) ⇒ Object
55 56 57 58 |
# File 'lib/svix/models/connector_kind.rb', line 55 def self.deserialize(value) return value if ConnectorKind.all_vars.include?(value) raise "Invalid ENUM value '#{value}' for class #ConnectorKind" end |
Instance Method Details
#serialize ⇒ Object
60 61 62 |
# File 'lib/svix/models/connector_kind.rb', line 60 def serialize @value end |