module Harvest::Client::Helpers::Create

Public Instance Methods

create(body) click to toggle source
# File lib/harvest/client/helpers/create.rb, line 5
def create body
  res = Request.new(@connection, build_url, body).post
  if res.success?
    resource.new(res.body)
  else
    res.error
  end
end