lib/moneta/api/response_factory.rb in moneta-api-1.12.0 vs lib/moneta/api/response_factory.rb in moneta-api-1.12.1

- old
+ new

@@ -5,10 +5,10 @@ # @param [Savon::Response] # @return [Moneta::Api::Responses::*] def build(response) klass, data = response.to_hash.to_a.first - Object.const_get("Moneta::Api::Responses::#{ klass.to_s.classify }").build(data) + Object.const_get("Moneta::Api::Responses::#{ klass.to_s.camelize }").build(data) end end end end end