Skip to content

Instantly share code, notes, and snippets.

@mjallday
Created October 24, 2013 02:26
Show Gist options
  • Save mjallday/7130277 to your computer and use it in GitHub Desktop.
Save mjallday/7130277 to your computer and use it in GitHub Desktop.
import balanced
class Invoice(balanced.Resource):
__metaclass__ = balanced.resources.resource_base(collection='invoices')
class Settlement(balanced.Resource):
__metaclass__ = balanced.resources.resource_base(
collection='settlements')
balanced.Invoice = Invoice
balanced.Settlement = Settlement
@mjallday
Copy link
Author

invoices = balanced.Invoice.query

for invoice in invoices:
   print invoice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment