Sha256: 19508a3516477502f0220e64e4397c38875736cea5cd45512ac213df8b02d654
Contents?: true
Size: 332 Bytes
Versions: 1
Compression:
Stored size: 332 Bytes
Contents
module SodaCan class Location def initialize (params) lat = nil lat = Float(params['latitude']) if params['latitude'] long = nil long = Float(params['longitude']) if params['longitude'] define_singleton_method(:latitude){ lat } define_singleton_method(:longitude){ long } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sodacan-0.0.7 | lib/sodacan/location.rb |