Class: Cerca::Resources::Models
- Inherits:
-
Object
- Object
- Cerca::Resources::Models
- Defined in:
- lib/cerca/resources/models.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Models
constructor
private
A new instance of Models.
-
#list(request_options: {}) ⇒ Cerca::Models::ModelListResponse
List models.
Constructor Details
#initialize(client:) ⇒ Models
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Models.
27 28 29 |
# File 'lib/cerca/resources/models.rb', line 27 def initialize(client:) @client = client end |
Instance Method Details
#list(request_options: {}) ⇒ Cerca::Models::ModelListResponse
List models
15 16 17 18 19 20 21 22 |
# File 'lib/cerca/resources/models.rb', line 15 def list(params = {}) @client.request( method: :get, path: "models", model: Cerca::Models::ModelListResponse, options: params[:request_options] ) end |