Sha256: c763ab6e321f0a60f7f778f22324788a307febf4eef8630c42301be21f886d03
Contents?: true
Size: 297 Bytes
Versions: 1
Compression:
Stored size: 297 Bytes
Contents
module GeoDistance::Model class Customer attr_reader :id, :name, :location def initialize(data_hash) @location = Location.new(data_hash.fetch("latitude"), data_hash.fetch("longitude")) @id = data_hash.fetch("user_id") @name = data_hash.fetch("name") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geo_distance-0.1.1 | lib/geo_distance/model/customer.rb |