Separate concerns. You should probably encapsulate the following responsibilities in separate classes:
- Get a URL.
- Parse the response body.
- Build a Hash or PORO that represents the payload.
You're not hitting an API. Be prepared to fail. Use an HTTP library like Excon that handles retries. Don't stub when testing. Your tests should not hide changes in the external URL.
Keep business logic out of your parsers. When testing them, simply assert if the parsing methods return something.