lib/jamef/rating.rb in jamef-api-0.5.2 vs lib/jamef/rating.rb in jamef-api-0.5.3
- old
+ new
@@ -68,14 +68,14 @@
{ error: get_error(parsed_response), success: false }
end
end
def self.successful_response? parsed_response
- parsed_response[:freight][:msgerro].match?(/^ok/i) and parsed_response[:delivery][:msgerro].match?(/^ok/i)
+ parsed_response[:freight][:msgerro] =~ (/^ok/i) and parsed_response[:delivery][:msgerro] =~ (/^ok/i)
end
def self.get_error parsed_response
- parsed_response[:freight][:msgerro].match?(/^ok/i) ? parsed_response[:delivery][:msgerro] : parsed_response[:freight][:msgerro]
+ parsed_response[:freight][:msgerro] =~ (/^ok/i) ? parsed_response[:delivery][:msgerro] : parsed_response[:freight][:msgerro]
end
end
end
\ No newline at end of file