Class: Google::Genai::Types::Blob
- Defined in:
- lib/google/genai/types.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Google::Genai::Types::Base
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
17 18 19 |
# File 'lib/google/genai/types.rb', line 17 def data @data end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
17 18 19 |
# File 'lib/google/genai/types.rb', line 17 def mime_type @mime_type end |
Instance Method Details
#to_h ⇒ Object
19 20 21 |
# File 'lib/google/genai/types.rb', line 19 def to_h { mimeType: mime_type, data: Base64.strict_encode64(data) } end |