Removing rails as a requirement and only requiring rest-client and using within the class