Class: Vellum::ComposioIntegrationExecConfig
- Inherits:
-
Object
- Object
- Vellum::ComposioIntegrationExecConfig
- Defined in:
- lib/vellum_ai/types/composio_integration_exec_config.rb
Constant Summary collapse
- OMIT =
Object.new
Instance Attribute Summary collapse
-
#additional_properties ⇒ OpenStruct
readonly
Additional properties unmapped to the current class definition.
- #slug ⇒ String readonly
- #type ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(type:, slug:, additional_properties: nil) ⇒ Vellum::ComposioIntegrationExecConfig constructor
- #to_json ⇒ String
Constructor Details
#initialize(type:, slug:, additional_properties: nil) ⇒ Vellum::ComposioIntegrationExecConfig
23 24 25 26 27 28 |
# File 'lib/vellum_ai/types/composio_integration_exec_config.rb', line 23 def initialize(type:, slug:, additional_properties: nil) @type = type @slug = slug @additional_properties = additional_properties @_field_set = { "type": type, "slug": slug } end |
Instance Attribute Details
#additional_properties ⇒ OpenStruct (readonly)
Returns Additional properties unmapped to the current class definition.
12 13 14 |
# File 'lib/vellum_ai/types/composio_integration_exec_config.rb', line 12 def additional_properties @additional_properties end |
#slug ⇒ String (readonly)
10 11 12 |
# File 'lib/vellum_ai/types/composio_integration_exec_config.rb', line 10 def slug @slug end |
#type ⇒ String (readonly)
8 9 10 |
# File 'lib/vellum_ai/types/composio_integration_exec_config.rb', line 8 def type @type end |
Class Method Details
.from_json(json_object:) ⇒ Vellum::ComposioIntegrationExecConfig
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/vellum_ai/types/composio_integration_exec_config.rb', line 33 def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) type = parsed_json["type"] slug = parsed_json["slug"] new( type: type, slug: slug, additional_properties: struct ) end |
.validate_raw(obj:) ⇒ Void
56 57 58 59 |
# File 'lib/vellum_ai/types/composio_integration_exec_config.rb', line 56 def self.validate_raw(obj:) obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.") obj.slug.is_a?(String) != false || raise("Passed value for field obj.slug is not the expected type, validation failed.") end |
Instance Method Details
#to_json ⇒ String
47 48 49 |
# File 'lib/vellum_ai/types/composio_integration_exec_config.rb', line 47 def to_json @_field_set&.to_json end |