Skip to content

Instantly share code, notes, and snippets.

@rserna2010
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rserna2010/2ebe2fa4f8afc7b113bb to your computer and use it in GitHub Desktop.
Save rserna2010/2ebe2fa4f8afc7b113bb to your computer and use it in GitHub Desktop.
Ruby Queries
Find By Email
Balanced::Customer.where(:email => 'jim@gmail.com').all
Find By Meta
Balanced::Debit.where('meta.orderid' => '12345').all
Combo
Balanced::Debit.where('meta.order' => '12345', "status"=>"succeeded").all
Find By Date
Balanced::Debit.where('created_at[>=]'=> '2014-03-10 00:00:00').all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment