{"action":"created","comment":{"url":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/comments/75460658","id":75460658,"diff_hunk":"@@ -0,0 +1,42 @@\n+class Route\n+  \n+  attr_reader :route_list\n+  attr_reader :first_station\n+  attr_reader :last_station\n+\n+  def initialize(first_station, last_station)\n+    @route_list = [first_station, last_station]\n+    puts \"Маршрут #{first_station.name} - #{last_station.name} создан.\"\n+  end \n+\n+  def first_station\n+    @route_list.first\n+  end\n+\n+  def last_station\n+    @route_list.last\n+  end\n+\n+  def add_station(station,station_position)\n+    if (2..route_list.length).include?(station_position)\n+       @route_list.insert(station_position - 1, station)\n+       puts \"Станция #{station.name} добавлена в маршрут #{self.first_station.name} - #{self.last_station.name}.\"\n+    else \n+      puts \"Станция должна быть между начальной и конечной.\"\n+    end\n+  end\n+\n+  def del_station(station)\n+    unless [@first_station, @last_station].include?(station)\n+       @route_list.delete(station)\n+       puts \"Станция #{station.name} была удалена из маршрута #{self.first_station.name} - #{self.last_station.name}.\"\n+    else\n+      puts \"Нельзя удалять первую и последнюю станции маршрута.\"  \n+    end\n+  end\n+\n+  def route_list_show","path":"Lesson_4-comments/route.rb","position":34,"original_position":38,"commit_id":"1ab1336f847531accbb7628eda14f3625487b836","original_commit_id":"1ab1336f847531accbb7628eda14f3625487b836","user":{"login":"psylone","id":224141,"avatar_url":"https://avatars.githubusercontent.com/u/224141?v=3","gravatar_id":"","url":"https://api.github.com/users/psylone","html_url":"https://github.com/psylone","followers_url":"https://api.github.com/users/psylone/followers","following_url":"https://api.github.com/users/psylone/following{/other_user}","gists_url":"https://api.github.com/users/psylone/gists{/gist_id}","starred_url":"https://api.github.com/users/psylone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psylone/subscriptions","organizations_url":"https://api.github.com/users/psylone/orgs","repos_url":"https://api.github.com/users/psylone/repos","events_url":"https://api.github.com/users/psylone/events{/privacy}","received_events_url":"https://api.github.com/users/psylone/received_events","type":"User","site_admin":false},"body":"Лучше `show_route_list`, а то получается у нас шоу вместо показать )","created_at":"2016-08-19T10:34:30Z","updated_at":"2016-08-19T10:34:30Z","html_url":"https://github.com/balashovmb/mb_ror_basic/pull/3#discussion_r75460658","pull_request_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/comments/75460658"},"html":{"href":"https://github.com/balashovmb/mb_ror_basic/pull/3#discussion_r75460658"},"pull_request":{"href":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/3","id":81915249,"html_url":"https://github.com/balashovmb/mb_ror_basic/pull/3","diff_url":"https://github.com/balashovmb/mb_ror_basic/pull/3.diff","patch_url":"https://github.com/balashovmb/mb_ror_basic/pull/3.patch","issue_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/issues/3","number":3,"state":"open","locked":false,"title":"Lesson 4 comments","user":{"login":"psylone","id":224141,"avatar_url":"https://avatars.githubusercontent.com/u/224141?v=3","gravatar_id":"","url":"https://api.github.com/users/psylone","html_url":"https://github.com/psylone","followers_url":"https://api.github.com/users/psylone/followers","following_url":"https://api.github.com/users/psylone/following{/other_user}","gists_url":"https://api.github.com/users/psylone/gists{/gist_id}","starred_url":"https://api.github.com/users/psylone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psylone/subscriptions","organizations_url":"https://api.github.com/users/psylone/orgs","repos_url":"https://api.github.com/users/psylone/repos","events_url":"https://api.github.com/users/psylone/events{/privacy}","received_events_url":"https://api.github.com/users/psylone/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-19T01:47:13Z","updated_at":"2016-08-19T10:34:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"776ff7f99cf1f77bef00851fb3d92ed179d61447","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/3/commits","review_comments_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/3/comments","review_comment_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/issues/3/comments","statuses_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/statuses/1ab1336f847531accbb7628eda14f3625487b836","head":{"label":"psylone:master","ref":"master","sha":"1ab1336f847531accbb7628eda14f3625487b836","user":{"login":"psylone","id":224141,"avatar_url":"https://avatars.githubusercontent.com/u/224141?v=3","gravatar_id":"","url":"https://api.github.com/users/psylone","html_url":"https://github.com/psylone","followers_url":"https://api.github.com/users/psylone/followers","following_url":"https://api.github.com/users/psylone/following{/other_user}","gists_url":"https://api.github.com/users/psylone/gists{/gist_id}","starred_url":"https://api.github.com/users/psylone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psylone/subscriptions","organizations_url":"https://api.github.com/users/psylone/orgs","repos_url":"https://api.github.com/users/psylone/repos","events_url":"https://api.github.com/users/psylone/events{/privacy}","received_events_url":"https://api.github.com/users/psylone/received_events","type":"User","site_admin":false},"repo":{"id":66043504,"name":"mb_ror_basic","full_name":"psylone/mb_ror_basic","owner":{"login":"psylone","id":224141,"avatar_url":"https://avatars.githubusercontent.com/u/224141?v=3","gravatar_id":"","url":"https://api.github.com/users/psylone","html_url":"https://github.com/psylone","followers_url":"https://api.github.com/users/psylone/followers","following_url":"https://api.github.com/users/psylone/following{/other_user}","gists_url":"https://api.github.com/users/psylone/gists{/gist_id}","starred_url":"https://api.github.com/users/psylone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psylone/subscriptions","organizations_url":"https://api.github.com/users/psylone/orgs","repos_url":"https://api.github.com/users/psylone/repos","events_url":"https://api.github.com/users/psylone/events{/privacy}","received_events_url":"https://api.github.com/users/psylone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/psylone/mb_ror_basic","description":null,"fork":true,"url":"https://api.github.com/repos/psylone/mb_ror_basic","forks_url":"https://api.github.com/repos/psylone/mb_ror_basic/forks","keys_url":"https://api.github.com/repos/psylone/mb_ror_basic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psylone/mb_ror_basic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psylone/mb_ror_basic/teams","hooks_url":"https://api.github.com/repos/psylone/mb_ror_basic/hooks","issue_events_url":"https://api.github.com/repos/psylone/mb_ror_basic/issues/events{/number}","events_url":"https://api.github.com/repos/psylone/mb_ror_basic/events","assignees_url":"https://api.github.com/repos/psylone/mb_ror_basic/assignees{/user}","branches_url":"https://api.github.com/repos/psylone/mb_ror_basic/branches{/branch}","tags_url":"https://api.github.com/repos/psylone/mb_ror_basic/tags","blobs_url":"https://api.github.com/repos/psylone/mb_ror_basic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psylone/mb_ror_basic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psylone/mb_ror_basic/git/refs{/sha}","trees_url":"https://api.github.com/repos/psylone/mb_ror_basic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psylone/mb_ror_basic/statuses/{sha}","languages_url":"https://api.github.com/repos/psylone/mb_ror_basic/languages","stargazers_url":"https://api.github.com/repos/psylone/mb_ror_basic/stargazers","contributors_url":"https://api.github.com/repos/psylone/mb_ror_basic/contributors","subscribers_url":"https://api.github.com/repos/psylone/mb_ror_basic/subscribers","subscription_url":"https://api.github.com/repos/psylone/mb_ror_basic/subscription","commits_url":"https://api.github.com/repos/psylone/mb_ror_basic/commits{/sha}","git_commits_url":"https://api.github.com/repos/psylone/mb_ror_basic/git/commits{/sha}","comments_url":"https://api.github.com/repos/psylone/mb_ror_basic/comments{/number}","issue_comment_url":"https://api.github.com/repos/psylone/mb_ror_basic/issues/comments{/number}","contents_url":"https://api.github.com/repos/psylone/mb_ror_basic/contents/{+path}","compare_url":"https://api.github.com/repos/psylone/mb_ror_basic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psylone/mb_ror_basic/merges","archive_url":"https://api.github.com/repos/psylone/mb_ror_basic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psylone/mb_ror_basic/downloads","issues_url":"https://api.github.com/repos/psylone/mb_ror_basic/issues{/number}","pulls_url":"https://api.github.com/repos/psylone/mb_ror_basic/pulls{/number}","milestones_url":"https://api.github.com/repos/psylone/mb_ror_basic/milestones{/number}","notifications_url":"https://api.github.com/repos/psylone/mb_ror_basic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psylone/mb_ror_basic/labels{/name}","releases_url":"https://api.github.com/repos/psylone/mb_ror_basic/releases{/id}","deployments_url":"https://api.github.com/repos/psylone/mb_ror_basic/deployments","created_at":"2016-08-19T01:45:31Z","updated_at":"2016-08-19T01:45:32Z","pushed_at":"2016-08-19T01:47:00Z","git_url":"git://github.com/psylone/mb_ror_basic.git","ssh_url":"git@github.com:psylone/mb_ror_basic.git","clone_url":"https://github.com/psylone/mb_ror_basic.git","svn_url":"https://github.com/psylone/mb_ror_basic","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"balashovmb:master","ref":"master","sha":"03aac81230f6db90ed28a3442a3c8a152d62810c","user":{"login":"balashovmb","id":20886210,"avatar_url":"https://avatars.githubusercontent.com/u/20886210?v=3","gravatar_id":"","url":"https://api.github.com/users/balashovmb","html_url":"https://github.com/balashovmb","followers_url":"https://api.github.com/users/balashovmb/followers","following_url":"https://api.github.com/users/balashovmb/following{/other_user}","gists_url":"https://api.github.com/users/balashovmb/gists{/gist_id}","starred_url":"https://api.github.com/users/balashovmb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balashovmb/subscriptions","organizations_url":"https://api.github.com/users/balashovmb/orgs","repos_url":"https://api.github.com/users/balashovmb/repos","events_url":"https://api.github.com/users/balashovmb/events{/privacy}","received_events_url":"https://api.github.com/users/balashovmb/received_events","type":"User","site_admin":false},"repo":{"id":65129205,"name":"mb_ror_basic","full_name":"balashovmb/mb_ror_basic","owner":{"login":"balashovmb","id":20886210,"avatar_url":"https://avatars.githubusercontent.com/u/20886210?v=3","gravatar_id":"","url":"https://api.github.com/users/balashovmb","html_url":"https://github.com/balashovmb","followers_url":"https://api.github.com/users/balashovmb/followers","following_url":"https://api.github.com/users/balashovmb/following{/other_user}","gists_url":"https://api.github.com/users/balashovmb/gists{/gist_id}","starred_url":"https://api.github.com/users/balashovmb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balashovmb/subscriptions","organizations_url":"https://api.github.com/users/balashovmb/orgs","repos_url":"https://api.github.com/users/balashovmb/repos","events_url":"https://api.github.com/users/balashovmb/events{/privacy}","received_events_url":"https://api.github.com/users/balashovmb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/balashovmb/mb_ror_basic","description":null,"fork":false,"url":"https://api.github.com/repos/balashovmb/mb_ror_basic","forks_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/forks","keys_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/teams","hooks_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/hooks","issue_events_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/issues/events{/number}","events_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/events","assignees_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/assignees{/user}","branches_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/branches{/branch}","tags_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/tags","blobs_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/git/refs{/sha}","trees_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/statuses/{sha}","languages_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/languages","stargazers_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/stargazers","contributors_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/contributors","subscribers_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/subscribers","subscription_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/subscription","commits_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/commits{/sha}","git_commits_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/git/commits{/sha}","comments_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/comments{/number}","issue_comment_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/issues/comments{/number}","contents_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/contents/{+path}","compare_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/merges","archive_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/downloads","issues_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/issues{/number}","pulls_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls{/number}","milestones_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/milestones{/number}","notifications_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/labels{/name}","releases_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/releases{/id}","deployments_url":"https://api.github.com/repos/balashovmb/mb_ror_basic/deployments","created_at":"2016-08-07T11:11:23Z","updated_at":"2016-08-08T12:08:23Z","pushed_at":"2016-08-19T09:07:04Z","git_url":"git://github.com/balashovmb/mb_ror_basic.git","ssh_url":"git@github.com:balashovmb/mb_ror_basic.git","clone_url":"https://github.com/balashovmb/mb_ror_basic.git","svn_url":"https://github.com/balashovmb/mb_ror_basic","homepage":null,"size":30,"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":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/3"},"html":{"href":"https://github.com/balashovmb/mb_ror_basic/pull/3"},"issue":{"href":"https://api.github.com/repos/balashovmb/mb_ror_basic/issues/3"},"comments":{"href":"https://api.github.com/repos/balashovmb/mb_ror_basic/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/balashovmb/mb_ror_basic/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/balashovmb/mb_ror_basic/statuses/1ab1336f847531accbb7628eda14f3625487b836"}}}}
{"actor":{"display_login":"psylone"}}