mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
19 lines
272 B
Ruby
19 lines
272 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SlimPointSerializer
|
|
def initialize(point)
|
|
@point = point
|
|
end
|
|
|
|
def call
|
|
{
|
|
latitude: point.latitude,
|
|
longitude: point.longitude,
|
|
timestamp: point.timestamp
|
|
}
|
|
end
|
|
|
|
private
|
|
|
|
attr_reader :point
|
|
end
|