Methods
Attributes
[R] | gps_location |
Class Public methods
Source: show
# File rails/activerecord/test/fixtures/customer.rb, line 40 def initialize(gps_location) @gps_location = gps_location end
Instance Public methods
Source: show
# File rails/activerecord/test/fixtures/customer.rb, line 52 def ==(other) self.latitude == other.latitude && self.longitude == other.longitude end
Source: show
# File rails/activerecord/test/fixtures/customer.rb, line 44 def latitude gps_location.split("x").first end
Source: show
# File rails/activerecord/test/fixtures/customer.rb, line 48 def longitude gps_location.split("x").last end