Sha256: 1c3e60fabbc4d0cefa302641feca4d8d52b54d7f0619408c04011b9056f74203

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

module Xsys
  module Model
    class TransactionItem
      attr_accessor :product_id, :transaction_status_id,
        :quantity, :remaining_quantity, :qa_flag, :qa_date,
        :amount_total, :cost,  :packages, :miles

      def initialize(attributes={})
        attributes.each do |k,v|
          self.send("#{k}=", v) if self.respond_to?(k)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xsys-0.0.27 lib/xsys/model/transaction_item.rb
xsys-0.0.26 lib/xsys/model/transaction_item.rb