Sha256: e4f5d375a56d2bd803663021f51ceca2dd060f6fc391c64cb0b5a8f8b44fe48f
Contents?: true
Size: 690 Bytes
Versions: 56
Compression:
Stored size: 690 Bytes
Contents
module Xeroizer module ApplicationHttpProxy def self.included(base) base.send :include, InstanceMethods end module InstanceMethods # URL end-point for this model. def url @application.xero_url + '/' + api_controller_name end def http_get(extra_params = {}) application.http_get(application.client, url, extra_params) end def http_put(xml, extra_params = {}) application.http_put(application.client, url, xml, extra_params) end def http_post(xml, extra_params = {}) application.http_post(application.client, url, xml, extra_params) end end end end
Version data entries
56 entries across 56 versions & 3 rubygems