Method: Bazil::Model#config

Defined in:
lib/bazil/model.rb

#configObject



33
34
35
36
37
# File 'lib/bazil/model.rb', line 33

def config
  res = @http_cli.get(gen_uri("configs/#{@config_id}"))
  raise_error("Failed to get config of the model: #{error_suffix}", res) unless res.code =~ /2[0-9][0-9]/
  JSON.parse(res.body)
end