lib/apimaster/mapper.rb in apimaster-0.0.5 vs lib/apimaster/mapper.rb in apimaster-0.0.6
- old
+ new
@@ -37,10 +37,10 @@
if hash.has_key?(field)
data[field] = hash[field]
elsif hash.has_key?(field.to_s)
data[field] = hash[field.to_s]
else
- raise Apimaster::MissingFieldError.new(self.class.get_class_name, field) if type == :required
+ raise Apimaster::MissingFieldError.new(class_name, field) if type == :required
end
end
end
data.each do |key, val|