Class: Starline::Entities::GeoPoint
- Inherits:
-
Object
- Object
- Starline::Entities::GeoPoint
- Defined in:
- lib/starline/entities/geo_point.rb
Instance Attribute Summary collapse
-
#lat ⇒ Object
readonly
Returns the value of attribute lat.
-
#lon ⇒ Object
readonly
Returns the value of attribute lon.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(lat:, lon:, timestamp:) ⇒ GeoPoint
constructor
A new instance of GeoPoint.
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 = end |
Instance Attribute Details
#lat ⇒ Object (readonly)
Returns the value of attribute lat.
4 5 6 |
# File 'lib/starline/entities/geo_point.rb', line 4 def lat @lat end |
#lon ⇒ Object (readonly)
Returns the value of attribute lon.
4 5 6 |
# File 'lib/starline/entities/geo_point.rb', line 4 def lon @lon end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
4 5 6 |
# File 'lib/starline/entities/geo_point.rb', line 4 def @timestamp end |