Class: Location

Inherits:
ApplicationRecord show all
Includes:
Diaspora::Federated::Base
Defined in:
app/models/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Diaspora::Federated::Base

#object_to_receive, #subscribers

Instance Attribute Details

#coordinatesObject

Returns the value of attribute coordinates


7
8
9
# File 'app/models/location.rb', line 7

def coordinates
  @coordinates
end

Instance Method Details

#split_coordsObject


13
14
15
# File 'app/models/location.rb', line 13

def split_coords
  self.lat, self.lng = coordinates.split(',') if coordinates.present?
end