class SodaCan::Location

Public Class Methods

new(params) click to toggle source
# File lib/sodacan/location.rb, line 3
def initialize (params)
  define_singleton_method(:latitude){ params['latitude'].to_f }
  define_singleton_method(:longitude){ params['longitude'].to_f }
end