Class: RunningTrack::Table
- Inherits:
-
Object
- Object
- RunningTrack::Table
- Defined in:
- lib/mosTrack/table.rb
Constant Summary collapse
- COLUMNS =
["District", "Address", "HelpPhone", "ObjectHasWifi"]
Instance Method Summary collapse
-
#initialize(data) ⇒ Table
constructor
A new instance of Table.
- #print ⇒ Object
Constructor Details
#initialize(data) ⇒ Table
Returns a new instance of Table.
17 18 19 20 21 22 23 24 25 |
# File 'lib/mosTrack/table.rb', line 17 def initialize data if data rows = slice_rows data @track_collection = TrackCollection.new rows else @track_collection = TrackCollection.new @track_collection.load! end end |
Instance Method Details
#print ⇒ Object
13 14 15 |
# File 'lib/mosTrack/table.rb', line 13 def print puts create_table end |