Class: NewTime::Point

Inherits:
Object
  • Object
show all
Defined in:
lib/new_time.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#latitudeObject

Returns the value of attribute latitude.



5
6
7
# File 'lib/new_time.rb', line 5

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



5
6
7
# File 'lib/new_time.rb', line 5

def longitude
  @longitude
end

#tzObject

Returns the value of attribute tz.



5
6
7
# File 'lib/new_time.rb', line 5

def tz
  @tz
end