Class: Starline::Builders::GeoPoints
- Inherits:
-
Object
- Object
- Starline::Builders::GeoPoints
- Defined in:
- lib/starline/builders/geo_points.rb
Class Method Summary collapse
Class Method Details
.build(tracks_json) ⇒ Object
6 7 8 9 |
# File 'lib/starline/builders/geo_points.rb', line 6 def self.build(tracks_json) points = tracks_json.fetch("desc") points.map { |point_hash| build_geo_point(point_hash) } end |