{"action":"created","issue":{"url":"https://api.github.com/repos/gmailgem/gmail/issues/206","labels_url":"https://api.github.com/repos/gmailgem/gmail/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/gmailgem/gmail/issues/206/comments","events_url":"https://api.github.com/repos/gmailgem/gmail/issues/206/events","html_url":"https://github.com/gmailgem/gmail/issues/206","id":122199501,"number":206,"title":"save_to_file not working","user":{"login":"gbailey4","id":12722945,"avatar_url":"https://avatars.githubusercontent.com/u/12722945?v=3","gravatar_id":"","url":"https://api.github.com/users/gbailey4","html_url":"https://github.com/gbailey4","followers_url":"https://api.github.com/users/gbailey4/followers","following_url":"https://api.github.com/users/gbailey4/following{/other_user}","gists_url":"https://api.github.com/users/gbailey4/gists{/gist_id}","starred_url":"https://api.github.com/users/gbailey4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbailey4/subscriptions","organizations_url":"https://api.github.com/users/gbailey4/orgs","repos_url":"https://api.github.com/users/gbailey4/repos","events_url":"https://api.github.com/users/gbailey4/events{/privacy}","received_events_url":"https://api.github.com/users/gbailey4/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-15T05:58:55Z","updated_at":"2015-12-15T14:40:08Z","closed_at":"2015-12-15T14:40:08Z","body":"When I try the following-\r\nSave just the first attachment from the newest unread email (assuming pdf):\r\n```Ruby\r\nemail = gmail.inbox.find(:unread).first\r\nemail.attachments[0].save_to_file(\"/path/to/location\")\r\n```\r\nI get the following error\r\n```Ruby\r\nNoMethodError: undefined method `save_to_file' for #<Mail::...\r\n```\r\n\r\nIs this method not available?"},"comment":{"url":"https://api.github.com/repos/gmailgem/gmail/issues/comments/164783508","html_url":"https://github.com/gmailgem/gmail/issues/206#issuecomment-164783508","issue_url":"https://api.github.com/repos/gmailgem/gmail/issues/206","id":164783508,"user":{"login":"bootstraponline","id":1173057,"avatar_url":"https://avatars.githubusercontent.com/u/1173057?v=3","gravatar_id":"","url":"https://api.github.com/users/bootstraponline","html_url":"https://github.com/bootstraponline","followers_url":"https://api.github.com/users/bootstraponline/followers","following_url":"https://api.github.com/users/bootstraponline/following{/other_user}","gists_url":"https://api.github.com/users/bootstraponline/gists{/gist_id}","starred_url":"https://api.github.com/users/bootstraponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bootstraponline/subscriptions","organizations_url":"https://api.github.com/users/bootstraponline/orgs","repos_url":"https://api.github.com/users/bootstraponline/repos","events_url":"https://api.github.com/users/bootstraponline/events{/privacy}","received_events_url":"https://api.github.com/users/bootstraponline/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T14:40:08Z","updated_at":"2015-12-15T14:40:08Z","body":"fixed by https://github.com/gmailgem/gmail/issues/207"}}