module Quickbooks::Service::ServiceCrudJSON
Public Instance Methods
Source
# File lib/quickbooks/service/service_crud_json.rb, line 9 def create(entity, options = {}) raise Quickbooks::InvalidModelException.new(entity.errors.full_messages.join(',')) unless entity.valid? response = do_http_post(url_for_resource(model.resource_for_singular), entity.to_json, options) if response.code.to_i == 200 JSON.parse(response.plain_body) else nil end end
Also aliased as: update
Source
# File lib/quickbooks/service/service_crud_json.rb, line 20 def delete raise NotImplementedError end
Source
# File lib/quickbooks/service/service_crud_json.rb, line 24 def delete_by_query_string raise NotImplementedError end
Source
# File lib/quickbooks/service/service_crud_json.rb, line 5 def fetch_by_id(id, params = {}) raise NotImplementedError end