Class: Gooby::CsvRun

Inherits:
GoobyObject show all
Defined in:
lib/gooby_csv_run.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GoobyKernel

#character_align, #default_delimiter, #invalid_altitude, #invalid_heartbeat, #invalid_latitude, #invalid_longitude, #invalid_time, #project_author, #project_copyright, #project_date, #project_embedded_comment, #project_license, #project_name, #project_version_number, #project_year, #read_as_ascii_lines, #read_lines, #strip_lines, #tokenize

Constructor Details

#initialize(id) ⇒ CsvRun

Returns a new instance of CsvRun.



15
16
17
18
# File 'lib/gooby_csv_run.rb', line 15

def initialize(id)
  @id     = "#{id}"
  @points = Array.new  
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



13
14
15
# File 'lib/gooby_csv_run.rb', line 13

def id
  @id
end

#pointsObject (readonly)

Returns the value of attribute points.



13
14
15
# File 'lib/gooby_csv_run.rb', line 13

def points
  @points
end

Instance Method Details

#add_point(point) ⇒ Object



20
21
22
23
24
# File 'lib/gooby_csv_run.rb', line 20

def add_point(point)
  if point
    @points << point  
  end  
end