Method: SpatialFeatures::FusionTables::ClassMethods#fusion_table_id_cache

Defined in:
lib/spatial_features/has_fusion_table_features.rb

#fusion_table_id_cacheObject



37
38
39
40
# File 'lib/spatial_features/has_fusion_table_features.rb', line 37

def fusion_table_id_cache
  @fusion_table_id_cache ||= Hash.new {|hash, table_name| hash[table_name] = API.find_or_create_table(table_name) }
    .merge(API.tables.collect {|table| [table.name, table.table_id] }.to_h) # Warm the cache
end