I have simple class with class's and private's methods
class XmlConnection
def self.guitarmania
request = HTTParty.get(site_url)
handle_errors(request)
end
private
def handle_errors(request)
if request.code == 200
request
else
raise 'Connection error'
end
end
end
when i call XmlConnection.guitarmania i get
NoMethodError: undefined method 'handle_errors' for XmlConnection:Class
How i can fix it?