null+****@clear*****
null+****@clear*****
2012年 5月 16日 (水) 14:13:18 JST
HAYASHI Kentaro 2012-05-16 14:13:18 +0900 (Wed, 16 May 2012)
New Revision: 963559a2e2cfaeaca875ff8825d4572b4fba45d0
Log:
test: add attr_accessor definitions
Modified files:
test/function/tools/geo/generate-grntest-data.rb
Modified: test/function/tools/geo/generate-grntest-data.rb (+17 -3)
===================================================================
--- test/function/tools/geo/generate-grntest-data.rb 2012-05-16 13:59:58 +0900 (523f1a5)
+++ test/function/tools/geo/generate-grntest-data.rb 2012-05-16 14:13:18 +0900 (de02d52)
@@ -22,10 +22,24 @@ SELECT_POST = "]]]]"
class GrnTestData
- attr :csv_file, :options
+ attr :csv_file
+ attr :options
- def initialize(csv_file, options = {})
- @csv_file = csv_file
+ attr_accessor :longitude_start_degree
+ attr_accessor :latitude_start_degree
+ attr_accessor :longitude_end_degree
+ attr_accessor :latitude_end_degree
+
+ attr_accessor :longitude_start
+ attr_accessor :latitude_start
+ attr_accessor :longitude_end
+ attr_accessor :latitude_end
+
+ attr_accessor :distance
+ attr_accessor :output_filename
+
+ def initialize(options = {})
+ @csv_file = options[:csv]
@options = options
end