{"action":"created","comment":{"url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/comments/86524855","pull_request_review_id":7171754,"id":86524855,"diff_hunk":"@@ -0,0 +1,83 @@\n+require 'yaml'\n+\n+module Person\n+\n+  PATH_TO_SERIALIZED = 'serialized'\n+\n+  module Factory\n+\n+    class PersonBase\n+      attr_writer :fullname, :sex, :age\n+\n+      def initialize(label, block)\n+        @label = label\n+        self.instance_eval &block\n+      end\n+\n+      def fullname(name = '')\n+        raise ArgumentError unless name.is_a?(String)\n+        @fullname = name unless name.empty?\n+        @fullname\n+      end\n+\n+      def sex(type = nil)\n+        raise ArgumentError unless [nil, :woman, :man, :male, :female].include?(type)\n+        @sex = type unless type.nil?\n+        @sex\n+      end\n+\n+      def age(number = -1)\n+        raise ArgumentError unless number.is_a?(Numeric)\n+        @age = number unless number == -1\n+        @age\n+      end\n+\n+      def file(file_name)\n+        raise ArgumentError unless file_name.is_a?(String)\n+        @file_name = file_name\n+      end\n+\n+      def inspect\n+        text =  \"Full Name : #{@fullname}\\n\"","path":"lesson5/hometask_oefimenko/person.rb","position":41,"original_position":41,"commit_id":"17407a5aa47230977f84cd7321aebec6339aaf97","original_commit_id":"17407a5aa47230977f84cd7321aebec6339aaf97","user":{"login":"nonkor","id":6322897,"avatar_url":"https://avatars.githubusercontent.com/u/6322897?v=3","gravatar_id":"","url":"https://api.github.com/users/nonkor","html_url":"https://github.com/nonkor","followers_url":"https://api.github.com/users/nonkor/followers","following_url":"https://api.github.com/users/nonkor/following{/other_user}","gists_url":"https://api.github.com/users/nonkor/gists{/gist_id}","starred_url":"https://api.github.com/users/nonkor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nonkor/subscriptions","organizations_url":"https://api.github.com/users/nonkor/orgs","repos_url":"https://api.github.com/users/nonkor/repos","events_url":"https://api.github.com/users/nonkor/events{/privacy}","received_events_url":"https://api.github.com/users/nonkor/received_events","type":"User","site_admin":false},"body":"why not\r\n```ruby\r\n        <<-EOF\r\nFull Name: #{@fullname}\r\nAge      : #{@age}\r\nSex      : #{@sex}\r\n        EOF\r\n```\r\n?\r\n\r\nYou don't like such style, do you?","created_at":"2016-11-04T11:06:10Z","updated_at":"2016-11-04T11:15:20Z","html_url":"https://github.com/nonkor/Betlab-ruby-courses/pull/27#discussion_r86524855","pull_request_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/comments/86524855"},"html":{"href":"https://github.com/nonkor/Betlab-ruby-courses/pull/27#discussion_r86524855"},"pull_request":{"href":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/27","id":89492170,"html_url":"https://github.com/nonkor/Betlab-ruby-courses/pull/27","diff_url":"https://github.com/nonkor/Betlab-ruby-courses/pull/27.diff","patch_url":"https://github.com/nonkor/Betlab-ruby-courses/pull/27.patch","issue_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/issues/27","number":27,"state":"open","locked":false,"title":"Oefimenko","user":{"login":"oefimenko","id":4517406,"avatar_url":"https://avatars.githubusercontent.com/u/4517406?v=3","gravatar_id":"","url":"https://api.github.com/users/oefimenko","html_url":"https://github.com/oefimenko","followers_url":"https://api.github.com/users/oefimenko/followers","following_url":"https://api.github.com/users/oefimenko/following{/other_user}","gists_url":"https://api.github.com/users/oefimenko/gists{/gist_id}","starred_url":"https://api.github.com/users/oefimenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oefimenko/subscriptions","organizations_url":"https://api.github.com/users/oefimenko/orgs","repos_url":"https://api.github.com/users/oefimenko/repos","events_url":"https://api.github.com/users/oefimenko/events{/privacy}","received_events_url":"https://api.github.com/users/oefimenko/received_events","type":"User","site_admin":false},"body":"Hometask 5\n","created_at":"2016-10-15T12:40:58Z","updated_at":"2016-11-04T11:15:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42f1dfe0aa9c85503a4136b7d0f8cd3e6b801fc2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/27/commits","review_comments_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/27/comments","review_comment_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/issues/27/comments","statuses_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/statuses/17407a5aa47230977f84cd7321aebec6339aaf97","head":{"label":"nonkor:oefimenko","ref":"oefimenko","sha":"17407a5aa47230977f84cd7321aebec6339aaf97","user":{"login":"nonkor","id":6322897,"avatar_url":"https://avatars.githubusercontent.com/u/6322897?v=3","gravatar_id":"","url":"https://api.github.com/users/nonkor","html_url":"https://github.com/nonkor","followers_url":"https://api.github.com/users/nonkor/followers","following_url":"https://api.github.com/users/nonkor/following{/other_user}","gists_url":"https://api.github.com/users/nonkor/gists{/gist_id}","starred_url":"https://api.github.com/users/nonkor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nonkor/subscriptions","organizations_url":"https://api.github.com/users/nonkor/orgs","repos_url":"https://api.github.com/users/nonkor/repos","events_url":"https://api.github.com/users/nonkor/events{/privacy}","received_events_url":"https://api.github.com/users/nonkor/received_events","type":"User","site_admin":false},"repo":{"id":62125114,"name":"Betlab-ruby-courses","full_name":"nonkor/Betlab-ruby-courses","owner":{"login":"nonkor","id":6322897,"avatar_url":"https://avatars.githubusercontent.com/u/6322897?v=3","gravatar_id":"","url":"https://api.github.com/users/nonkor","html_url":"https://github.com/nonkor","followers_url":"https://api.github.com/users/nonkor/followers","following_url":"https://api.github.com/users/nonkor/following{/other_user}","gists_url":"https://api.github.com/users/nonkor/gists{/gist_id}","starred_url":"https://api.github.com/users/nonkor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nonkor/subscriptions","organizations_url":"https://api.github.com/users/nonkor/orgs","repos_url":"https://api.github.com/users/nonkor/repos","events_url":"https://api.github.com/users/nonkor/events{/privacy}","received_events_url":"https://api.github.com/users/nonkor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nonkor/Betlab-ruby-courses","description":"This project is created for storing and tracking actual progress of Betlab Ruby Courses","fork":false,"url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses","forks_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/forks","keys_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/teams","hooks_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/hooks","issue_events_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/issues/events{/number}","events_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/events","assignees_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/assignees{/user}","branches_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/branches{/branch}","tags_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/tags","blobs_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/languages","stargazers_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/stargazers","contributors_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/contributors","subscribers_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/subscribers","subscription_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/subscription","commits_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/contents/{+path}","compare_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/merges","archive_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/downloads","issues_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/issues{/number}","pulls_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/labels{/name}","releases_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/releases{/id}","deployments_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/deployments","created_at":"2016-06-28T08:48:05Z","updated_at":"2016-10-28T08:58:47Z","pushed_at":"2016-11-03T20:56:50Z","git_url":"git://github.com/nonkor/Betlab-ruby-courses.git","ssh_url":"git@github.com:nonkor/Betlab-ruby-courses.git","clone_url":"https://github.com/nonkor/Betlab-ruby-courses.git","svn_url":"https://github.com/nonkor/Betlab-ruby-courses","homepage":null,"size":359,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":1,"default_branch":"master"}},"base":{"label":"nonkor:master","ref":"master","sha":"37ee6d74504ce0799d963b505928011aa9c58211","user":{"login":"nonkor","id":6322897,"avatar_url":"https://avatars.githubusercontent.com/u/6322897?v=3","gravatar_id":"","url":"https://api.github.com/users/nonkor","html_url":"https://github.com/nonkor","followers_url":"https://api.github.com/users/nonkor/followers","following_url":"https://api.github.com/users/nonkor/following{/other_user}","gists_url":"https://api.github.com/users/nonkor/gists{/gist_id}","starred_url":"https://api.github.com/users/nonkor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nonkor/subscriptions","organizations_url":"https://api.github.com/users/nonkor/orgs","repos_url":"https://api.github.com/users/nonkor/repos","events_url":"https://api.github.com/users/nonkor/events{/privacy}","received_events_url":"https://api.github.com/users/nonkor/received_events","type":"User","site_admin":false},"repo":{"id":62125114,"name":"Betlab-ruby-courses","full_name":"nonkor/Betlab-ruby-courses","owner":{"login":"nonkor","id":6322897,"avatar_url":"https://avatars.githubusercontent.com/u/6322897?v=3","gravatar_id":"","url":"https://api.github.com/users/nonkor","html_url":"https://github.com/nonkor","followers_url":"https://api.github.com/users/nonkor/followers","following_url":"https://api.github.com/users/nonkor/following{/other_user}","gists_url":"https://api.github.com/users/nonkor/gists{/gist_id}","starred_url":"https://api.github.com/users/nonkor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nonkor/subscriptions","organizations_url":"https://api.github.com/users/nonkor/orgs","repos_url":"https://api.github.com/users/nonkor/repos","events_url":"https://api.github.com/users/nonkor/events{/privacy}","received_events_url":"https://api.github.com/users/nonkor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nonkor/Betlab-ruby-courses","description":"This project is created for storing and tracking actual progress of Betlab Ruby Courses","fork":false,"url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses","forks_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/forks","keys_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/teams","hooks_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/hooks","issue_events_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/issues/events{/number}","events_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/events","assignees_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/assignees{/user}","branches_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/branches{/branch}","tags_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/tags","blobs_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/languages","stargazers_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/stargazers","contributors_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/contributors","subscribers_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/subscribers","subscription_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/subscription","commits_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/contents/{+path}","compare_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/merges","archive_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/downloads","issues_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/issues{/number}","pulls_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/labels{/name}","releases_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/releases{/id}","deployments_url":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/deployments","created_at":"2016-06-28T08:48:05Z","updated_at":"2016-10-28T08:58:47Z","pushed_at":"2016-11-03T20:56:50Z","git_url":"git://github.com/nonkor/Betlab-ruby-courses.git","ssh_url":"git@github.com:nonkor/Betlab-ruby-courses.git","clone_url":"https://github.com/nonkor/Betlab-ruby-courses.git","svn_url":"https://github.com/nonkor/Betlab-ruby-courses","homepage":null,"size":359,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/27"},"html":{"href":"https://github.com/nonkor/Betlab-ruby-courses/pull/27"},"issue":{"href":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/issues/27"},"comments":{"href":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/nonkor/Betlab-ruby-courses/statuses/17407a5aa47230977f84cd7321aebec6339aaf97"}}}}
{"actor":{"display_login":"nonkor"}}