Class: Cadenya::Types::OpenAIConfig
- Inherits:
-
Object
- Object
- Cadenya::Types::OpenAIConfig
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#organization_id ⇒ Object
readonly
Returns the value of attribute organization_id.
-
#project_id ⇒ Object
readonly
Returns the value of attribute project_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(organization_id: nil, project_id: nil) ⇒ OpenAIConfig
constructor
A new instance of OpenAIConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(organization_id: nil, project_id: nil) ⇒ OpenAIConfig
Returns a new instance of OpenAIConfig.
4413 4414 4415 4416 |
# File 'lib/cadenya/types.rb', line 4413 def initialize(organization_id: nil, project_id: nil) @organization_id = organization_id @project_id = project_id end |
Instance Attribute Details
#organization_id ⇒ Object (readonly)
Returns the value of attribute organization_id.
4411 4412 4413 |
# File 'lib/cadenya/types.rb', line 4411 def organization_id @organization_id end |
#project_id ⇒ Object (readonly)
Returns the value of attribute project_id.
4411 4412 4413 |
# File 'lib/cadenya/types.rb', line 4411 def project_id @project_id end |
Class Method Details
.from_json(data) ⇒ Object
4418 4419 4420 4421 4422 4423 |
# File 'lib/cadenya/types.rb', line 4418 def self.from_json(data) new( organization_id: data["organizationId"], project_id: data["projectId"], ) end |