Class: LaunchDarkly::Server::AI::ProviderConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/server/ai/client.rb

Overview

Configuration related to the provider.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ ProviderConfig

Returns a new instance of ProviderConfig.



90
91
92
# File 'lib/server/ai/client.rb', line 90

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



88
89
90
# File 'lib/server/ai/client.rb', line 88

def name
  @name
end

Instance Method Details

#to_hObject



94
95
96
97
98
# File 'lib/server/ai/client.rb', line 94

def to_h
  {
    name: @name,
  }
end