Sha256: deff472240412eb53b7b30046d967b883c6760c5d48c545844fcfc63db261ecb

Contents?: true

Size: 365 Bytes

Versions: 7

Compression:

Stored size: 365 Bytes

Contents

require 'attr_extras'

class Tordist::Transaction
  vattr_initialize :row

  def date
    @row[:date]
  end

  def broker
    @row[:broker]
  end

  def broker_alias_code
    @row[:broker_alias_code]
  end
  
  def side
    @row[:side]
  end
  
  def quantity
    @row[:quantity]
  end
  
  def price
    @row[:price]
  end

  def symbol
    @row[:symbol]
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tordist-0.2.0 lib/tordist/transaction.rb
tordist-0.1.6 lib/tordist/transaction.rb
tordist-0.1.5 lib/tordist/transaction.rb
tordist-0.1.4 lib/tordist/transaction.rb
tordist-0.1.3 lib/tordist/transaction.rb
tordist-0.1.2 lib/tordist/transaction.rb
tordist-0.1.1 lib/tordist/transaction.rb