Method: Bazil::Model#model_config
- Defined in:
- lib/bazil/model.rb
#model_config ⇒ Object
22 23 24 25 26 |
# File 'lib/bazil/model.rb', line 22 def model_config res = @http_cli.get(gen_uri()) raise_error("Failed to get model config: #{error_suffix}", res) unless res.code =~ /2[0-9][0-9]/ JSON.parse(res.body) end |