When wrong use of the library
module Worldmate
class HotelToBaobabMapper < HashMap::Base
property :hotel_name, key: :name
from_child :address do
property :street, key: :address
property :phone, key: :telephone
property :postal_code, key: :zip
properties :city, :country_code
end
end
end
the error:
NoMethodError: undefined method `reverse' for :name:Symbol
the good syntax is:
property :name, from: :hotel_name
But the error should help better to know what is happening
When wrong use of the library
the error:
NoMethodError: undefined method `reverse' for :name:Symbol
the good syntax is:
But the error should help better to know what is happening