dawarich/app/serializers/points/gpx_serializer.rb

18 lines
277 B
Ruby
Raw Normal View History

2024-09-02 15:35:08 -04:00
# frozen_string_literal: true
class Points::GpxSerializer
def initialize(points)
@points = points
end
def call
geojson_data = Points::GeojsonSerializer.new(points).call
GPX::GeoJSON.convert_to_gpx(geojson_data:)
end
private
attr_reader :points
end