Module: NCore::Build::ClassMethods

Defined in:
lib/ncore/methods/build.rb

Instance Method Summary collapse

Instance Method Details

#build(params = {}) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/ncore/methods/build.rb', line 6

def build(params={})
  params = parse_request_params(params)
  parsed, creds = request(:get, "#{resource_path}/new", params)
  if parsed[:errors].any?
    raise module_parent::QueryError, parsed[:errors]
  end
  new(parsed, creds)
end