Skip to content

Instantly share code, notes, and snippets.

@nthock
Created April 12, 2017 07:38
Show Gist options
  • Save nthock/eec59b2043498ff984f8a0f57244ddb8 to your computer and use it in GitHub Desktop.
Save nthock/eec59b2043498ff984f8a0f57244ddb8 to your computer and use it in GitHub Desktop.
Class for extracting fixed assets in Xero
class XeroFixedAssets
include Xeroizer::Http
include Xeroizer::ApplicationHttpProxy::InstanceMethods
def initialize(xero_client)
@xero_client = xero_client
end
def url
"https://api.xero.com/assets.xro/1.0" + '/' + "Assets"
end
def http_get(extra_params={})
@xero_client.http_get(@xero_client.client, url, extra_params)
end
def get_assets
self.http_get
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment