Created
April 12, 2017 07:38
-
-
Save nthock/eec59b2043498ff984f8a0f57244ddb8 to your computer and use it in GitHub Desktop.
Class for extracting fixed assets in Xero
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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