Class: Utilities::Geo::ConvertToDecimalDegrees

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (ConvertToDecimalDegrees) initialize(coordinate)

Returns a new instance of ConvertToDecimalDegrees



53
54
55
56
# File 'lib/utilities/geo.rb', line 53

def initialize(coordinate)
  @dms = coordinate
  @dd  = Utilities::Geo.degrees_minutes_seconds_to_decimal_degrees(coordinate)
end

Instance Attribute Details

- (Object) dd (readonly)

Returns the value of attribute dd



51
52
53
# File 'lib/utilities/geo.rb', line 51

def dd
  @dd
end

- (Object) dms (readonly)

Returns the value of attribute dms



51
52
53
# File 'lib/utilities/geo.rb', line 51

def dms
  @dms
end