class Roulette::Transaction

Attributes

args[RW]
method[RW]
store[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/roulette/transaction.rb, line 4
def initialize(options = {})
  self.store = options[:store]
  self.args = *options[:args]
  self.method = options[:method]
end

Public Instance Methods

fire(method_name = nil ) click to toggle source
# File lib/roulette/transaction.rb, line 10
def fire(method_name = nil )
  method_to_fire = (method_name||method).to_sym
  store.send method_to_fire, *args
end