Class: Google::Genai::Types::FileData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Google::Genai::Types::Base

Instance Attribute Details

#file_uriObject

Returns the value of attribute file_uri.



25
26
27
# File 'lib/google/genai/types.rb', line 25

def file_uri
  @file_uri
end

#mime_typeObject

Returns the value of attribute mime_type.



25
26
27
# File 'lib/google/genai/types.rb', line 25

def mime_type
  @mime_type
end

Instance Method Details

#to_hObject



27
28
29
# File 'lib/google/genai/types.rb', line 27

def to_h
  { mimeType: mime_type, fileUri: file_uri }
end