Method: Bazil::Model#labels
- Defined in:
- lib/bazil/model.rb
#labels ⇒ Object
75 76 77 78 79 |
# File 'lib/bazil/model.rb', line 75 def labels res = @http_cli.get(gen_uri(target_path(@config_id, "labels"))) raise_error("Failed to get labels the model has: #{error_suffix}", res) unless res.code =~ /2[0-9][0-9]/ JSON.parse(res.body)['labels'] end |