Skip to content

Instantly share code, notes, and snippets.

@neaf
Created July 7, 2011 09:30
Show Gist options
  • Save neaf/1069181 to your computer and use it in GitHub Desktop.
Save neaf/1069181 to your computer and use it in GitHub Desktop.
pry(main)> s = Emvoicer::Services::Blinksale.new("xteamtest", "xteam-api", "xteam-api")
=> #<Emvoicer::Services::Blinksale:0x00000102b070e0>
pry(main)> EM.run { s.invoices({:status => "open"}, proc { |invoices| puts invoices; EM.stop }) }
{:id=>2706951, :number=>"1", :total_amount=>1200.0, :due_amount=>1200.0, :issued_on=>#<Date: 2011-06-22 (4911469/2,0,2299161)>, :due_on=>#<Date: 2011-07-07 (4911499/2,0,2299161)>, :currency=>"USD"}
=> nil
pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment