class GpsLocation
Attributes
gps_location[R]
Public Class Methods
new(gps_location)
click to toggle source
# File activerecord/test/models/customer.rb, line 48 def initialize(gps_location) @gps_location = gps_location end
Public Instance Methods
==(other)
click to toggle source
# File activerecord/test/models/customer.rb, line 60 def ==(other) latitude == other.latitude && longitude == other.longitude end
latitude()
click to toggle source
# File activerecord/test/models/customer.rb, line 52 def latitude gps_location.split("x").first end
longitude()
click to toggle source
# File activerecord/test/models/customer.rb, line 56 def longitude gps_location.split("x").last end