Class: Google::Genai::Types::Base
- Inherits:
-
Object
- Object
- Google::Genai::Types::Base
- Defined in:
- lib/google/genai/types.rb
Direct Known Subclasses
BatchJob, Blob, CachedContent, Candidate, Content, File, FileData, GenerateContentResponse, Operation, Part, TuningJob
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
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 |