Sha256: 050360d47512e85aa12b35e0a0e4f5c876a9dc68a8c137c2340fac2c65662fa0
Contents?: true
Size: 518 Bytes
Versions: 16
Compression:
Stored size: 518 Bytes
Contents
# A location file. Really a collection of properties and initializer. class Rubyfocus::Location attr_accessor :name, :latitude, :longitude, :radius, :notification_flags def initialize(n) @notification_flags = 0 self.name = n["name"] self.latitude = n["latitude"].to_f self.longitude = n["longitude"].to_f self.radius = n["radius"].to_i self.notification_flags = n["notificationFlags"].to_i end def inspect %|#<Rubyfocus::Location latitude="#{self.latitude}" longitude="#{self.longitude}">| end end
Version data entries
16 entries across 16 versions & 1 rubygems