Skip to content

Instantly share code, notes, and snippets.

@hellosweta
Created December 19, 2018 22:05
Show Gist options
  • Save hellosweta/ea5bef253c987bb94b73fe45145492e3 to your computer and use it in GitHub Desktop.
Save hellosweta/ea5bef253c987bb94b73fe45145492e3 to your computer and use it in GitHub Desktop.
Write a file from an xml response
File.open('file/path/that/exists/file.xml', 'w') { |file| file.puts response }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment