Use for spawning multiple objects
class Foo
attr_writer :bar_source
private
pg_restore --verbose --clean --no-acl --no-owner -d tributario_development latest.dump |
git branch -D `git branch | awk '{ if ($0 !~ /master/) printf "%s", $0 }'` |
export RUBY_GC_MALLOC_LIMIT=1000000000 && export RUBY_FREE_MIN=500000 && export RUBY_HEAP_MIN_SLOTS=40000 |
"bank_code"=>nil, | |
"barcode_data"=>"81600000000590012342013081000000000000003332", | |
"city_hall_id"=>29, | |
"created_at"=>"2013-07-23T10:08:05-03:00", | |
"da_fees_cents"=>0, | |
"delta"=>false, | |
"discount_cents"=>0, | |
"document_number"=>3332, | |
"emission_date"=>"2013-07-23", | |
"expiration_date"=>"2013-08-10", |
recurring_transfers = RecurringAccountTransfer.due.pluck(:id)
Transaction.where(recurring_account_transfer_id: recurring_transfers).each do |transaction|
transaction.void!
end
Braintree::Configuration.instantiate.http.put "/transactions/#{transaction.id}/settle" |
(+ 1 2) | |
; KEYWORDS | |
; used to map values in hashes | |
(def person {:name "Andre" | |
:city "Florianopolis"}) | |
; Keywords are functions that look themselves up in collections passed to them. |