class Patriarch::TransactionServices::TransactionManagerService
Attributes
count[RW]
Fill with logic to manage ressources with transactions … Can registers transactions and so on …
Public Instance Methods
incr_count()
click to toggle source
# File lib/patriarch/transaction_services/transaction_manager_service.rb, line 18 def incr_count @count ||= 0 @count += 1 end
new_transaction(type)
click to toggle source
# File lib/patriarch/transaction_services/transaction_manager_service.rb, line 12 def new_transaction(type) id = Time.now.to_f incr_count Patriarch::Transaction.new(type,id) end