Class: NewTime::Point
- Inherits:
-
Object
- Object
- NewTime::Point
- Defined in:
- lib/new_time.rb
Instance Attribute Summary collapse
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#tz ⇒ Object
Returns the value of attribute tz.
Instance Method Summary collapse
-
#initialize(latitude, longitude, tz) ⇒ Point
constructor
A new instance of Point.
Constructor Details
#initialize(latitude, longitude, tz) ⇒ Point
Returns a new instance of Point.
7 8 9 |
# File 'lib/new_time.rb', line 7 def initialize(latitude, longitude, tz) @latitude, @longitude, @tz = latitude, longitude, tz end |
Instance Attribute Details
#latitude ⇒ Object
Returns the value of attribute latitude.
5 6 7 |
# File 'lib/new_time.rb', line 5 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
5 6 7 |
# File 'lib/new_time.rb', line 5 def longitude @longitude end |
#tz ⇒ Object
Returns the value of attribute tz.
5 6 7 |
# File 'lib/new_time.rb', line 5 def tz @tz end |