{"action":"created","issue":{"url":"https://api.github.com/repos/claviska/SimpleImage/issues/126","repository_url":"https://api.github.com/repos/claviska/SimpleImage","labels_url":"https://api.github.com/repos/claviska/SimpleImage/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/claviska/SimpleImage/issues/126/comments","events_url":"https://api.github.com/repos/claviska/SimpleImage/issues/126/events","html_url":"https://github.com/claviska/SimpleImage/pull/126","id":136708507,"number":126,"title":"Refactored output and save method","user":{"login":"alexxandar","id":12451981,"avatar_url":"https://avatars.githubusercontent.com/u/12451981?v=3","gravatar_id":"","url":"https://api.github.com/users/alexxandar","html_url":"https://github.com/alexxandar","followers_url":"https://api.github.com/users/alexxandar/followers","following_url":"https://api.github.com/users/alexxandar/following{/other_user}","gists_url":"https://api.github.com/users/alexxandar/gists{/gist_id}","starred_url":"https://api.github.com/users/alexxandar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexxandar/subscriptions","organizations_url":"https://api.github.com/users/alexxandar/orgs","repos_url":"https://api.github.com/users/alexxandar/repos","events_url":"https://api.github.com/users/alexxandar/events{/privacy}","received_events_url":"https://api.github.com/users/alexxandar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-26T14:11:46Z","updated_at":"2016-02-26T15:59:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/claviska/SimpleImage/pulls/126","html_url":"https://github.com/claviska/SimpleImage/pull/126","diff_url":"https://github.com/claviska/SimpleImage/pull/126.diff","patch_url":"https://github.com/claviska/SimpleImage/pull/126.patch"},"body":"I've noticed that output, output_base64 and save methods are using a lot of the same code. To avoid code repetition and make the future changes easier I've created a new method called _generate_. \r\nThis method stores the image data and image mime type into class properties so they can be later used by methods output, output_base64 and save."},"comment":{"url":"https://api.github.com/repos/claviska/SimpleImage/issues/comments/189338869","html_url":"https://github.com/claviska/SimpleImage/pull/126#issuecomment-189338869","issue_url":"https://api.github.com/repos/claviska/SimpleImage/issues/126","id":189338869,"user":{"login":"claviska","id":55639,"avatar_url":"https://avatars.githubusercontent.com/u/55639?v=3","gravatar_id":"","url":"https://api.github.com/users/claviska","html_url":"https://github.com/claviska","followers_url":"https://api.github.com/users/claviska/followers","following_url":"https://api.github.com/users/claviska/following{/other_user}","gists_url":"https://api.github.com/users/claviska/gists{/gist_id}","starred_url":"https://api.github.com/users/claviska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claviska/subscriptions","organizations_url":"https://api.github.com/users/claviska/orgs","repos_url":"https://api.github.com/users/claviska/repos","events_url":"https://api.github.com/users/claviska/events{/privacy}","received_events_url":"https://api.github.com/users/claviska/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T15:59:24Z","updated_at":"2016-02-26T15:59:24Z","body":"Good idea. Give me some time to review this more thoroughly and let others take a look. I don't see any obvious breaking changes, but other eyes might see something worth discussing :)\r\n\r\nCare to also take a look, @nazar-pc?"}}