Class: Google::Genai::Types::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/google/genai/types.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
13
# File 'lib/google/genai/types.rb', line 8

def initialize(attributes = {})
  attributes.each do |key, value|
    setter = "#{key}="
    public_send(setter, value) if respond_to?(setter)
  end
end