Displaying 1 result from an estimated 1 matches for "invoice_value".
2006 Sep 28
3
A few questions about numbers and dates
...le
==========================
require ''rubygems''
require ''ferret''
require ''date''
p Ferret::VERSION
@dir = Ferret::Store::RAMDirectory.new
@index = Ferret::Index::Index.new(:dir => @dir)
invoice = {:invoice_date => Date.new(2006,9,20), :invoice_value =>
44.50, :invoice_no => 45656, :invoice_to => ''Nev''}
@index << invoice
doc = @index[0].load
doc.fields.each do |f|
p f
p doc[f].class
p doc[f]
end
==========================
>ruby test_format.rb
"0.10.6"
:invoice_date
String
"2006-09-20...