Class: Starline::Entities::GeoPoint

Inherits:
Object
  • Object
show all
Defined in:
lib/starline/entities/geo_point.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lat:, lon:, timestamp:) ⇒ GeoPoint

Returns a new instance of GeoPoint.



6
7
8
9
10
# File 'lib/starline/entities/geo_point.rb', line 6

def initialize(lat:, lon:, timestamp:)
  @lat = lat
  @lon = lon
  @timestamp = timestamp
end

Instance Attribute Details

#latObject (readonly)

Returns the value of attribute lat.



4
5
6
# File 'lib/starline/entities/geo_point.rb', line 4

def lat
  @lat
end

#lonObject (readonly)

Returns the value of attribute lon.



4
5
6
# File 'lib/starline/entities/geo_point.rb', line 4

def lon
  @lon
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



4
5
6
# File 'lib/starline/entities/geo_point.rb', line 4

def timestamp
  @timestamp
end