Class: Google::Genai::Operations

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

Instance Method Summary collapse

Constructor Details

#initialize(api_client) ⇒ Operations

Returns a new instance of Operations.



8
9
10
# File 'lib/google/genai/operations.rb', line 8

def initialize(api_client)
  @api_client = api_client
end

Instance Method Details

#get(name:, config: nil) ⇒ Object



12
13
14
15
# File 'lib/google/genai/operations.rb', line 12

def get(name:, config: nil)
  response = @api_client.get("v1beta/#{name}")
  Types::Operation.new(JSON.parse(response.body))
end