Class: Getimg::Client::Models
- Inherits:
-
Object
- Object
- Getimg::Client::Models
- Defined in:
- lib/getimg/client/models.rb
Instance Method Summary collapse
-
#get(id) ⇒ Object
Path Params id string, required.
-
#initialize(client) ⇒ Models
constructor
A new instance of Models.
-
#list(options = {}) ⇒ Object
Query Params family string pipeline string.
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( = {}) @client.get("/models", ) end |