Module: DataImport

Included in:
GtfsStopsClustering::GtfsStopsClustering
Defined in:
lib/gtfs_stops_clustering/data_import.rb

Overview

DataImport module

Defined Under Namespace

Classes: DataImport

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#data_importObject

Returns the value of attribute data_import.



10
11
12
# File 'lib/gtfs_stops_clustering/data_import.rb', line 10

def data_import
  @data_import
end

Instance Method Details

#import_stops_data(*args) ⇒ Object



60
61
62
63
64
65
66
67
# File 'lib/gtfs_stops_clustering/data_import.rb', line 60

def import_stops_data(*args)
  @data_import = DataImport.new(*args)
  {
    stops_data: @data_import.stops_data,
    stops_names: @data_import.stops_names,
    stops_redis_geodata: @data_import.stops_redis_geodata
  }
end