Class: Getimg::Client::Models

Inherits:
Object
  • Object
show all
Defined in:
lib/getimg/client/models.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Models

Returns a new instance of Models.



6
7
8
# File 'lib/getimg/client/models.rb', line 6

def initialize(client)
  @client = client
end

Instance Method Details

#get(id) ⇒ Object

Path Params id string, required



19
20
21
# File 'lib/getimg/client/models.rb', line 19

def get(id)
  @client.get("/models/#{id}")
end

#list(options = {}) ⇒ Object

Query Params family string pipeline string



13
14
15
# File 'lib/getimg/client/models.rb', line 13

def list(options = {})
  @client.get("/models", options)
end