class GeoDistance::Model::Customer
Attributes
id[R]
location[R]
name[R]
Public Class Methods
new(data_hash)
click to toggle source
# File lib/geo_distance/model/customer.rb, line 5 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