Sha256: 54ee3ef6434cddd9c1cf0d2b73babcd85dd050c6fa995660b9d0acb9a0f9629d

Contents?: true

Size: 297 Bytes

Versions: 1

Compression:

Stored size: 297 Bytes

Contents

class Roulette::Transaction
  attr_accessor :args, :store, :method

  def initialize(options = {})
    self.store = options[:store]
    self.args = *options[:args]
    self.method = options[:method]
  end

  def fire(method_name = nil )
    store.send (method_name||method).to_sym, *args
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roulette-0.0.3 lib/roulette/transaction.rb