{"action":"created","comment":{"url":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/comments/195916327","pull_request_review_id":129377154,"id":195916327,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTkxNjMyNw==","diff_hunk":"@@ -2,11 +2,12 @@\n require_relative 'field'\n \n class ResourceDef\n-  attr_reader :name, :fields\n+  attr_reader :name, :fields, :imports\n   \n-  def initialize(name, fields)\n-    @name = name\n+  def initialize(name, fields, opts={})","path":"src/codegen/ruby/def/resource.rb","position":9,"original_position":9,"commit_id":"ff6fbdd3aeca0afdfecd3493c42b7745221466a4","original_commit_id":"ff6fbdd3aeca0afdfecd3493c42b7745221466a4","user":{"login":"ianagbip1oti","id":26780798,"node_id":"MDQ6VXNlcjI2NzgwNzk4","avatar_url":"https://avatars2.githubusercontent.com/u/26780798?v=4","gravatar_id":"","url":"https://api.github.com/users/ianagbip1oti","html_url":"https://github.com/ianagbip1oti","followers_url":"https://api.github.com/users/ianagbip1oti/followers","following_url":"https://api.github.com/users/ianagbip1oti/following{/other_user}","gists_url":"https://api.github.com/users/ianagbip1oti/gists{/gist_id}","starred_url":"https://api.github.com/users/ianagbip1oti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianagbip1oti/subscriptions","organizations_url":"https://api.github.com/users/ianagbip1oti/orgs","repos_url":"https://api.github.com/users/ianagbip1oti/repos","events_url":"https://api.github.com/users/ianagbip1oti/events{/privacy}","received_events_url":"https://api.github.com/users/ianagbip1oti/received_events","type":"User","site_admin":false},"body":"https://stackoverflow.com/a/18407748","created_at":"2018-06-17T02:20:46Z","updated_at":"2018-06-17T02:20:46Z","html_url":"https://github.com/princesslana/ErisCasper-Data/pull/30#discussion_r195916327","pull_request_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/30","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/comments/195916327"},"html":{"href":"https://github.com/princesslana/ErisCasper-Data/pull/30#discussion_r195916327"},"pull_request":{"href":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/30"}},"in_reply_to_id":195913774},"pull_request":{"url":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/30","id":195347136,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MzQ3MTM2","html_url":"https://github.com/princesslana/ErisCasper-Data/pull/30","diff_url":"https://github.com/princesslana/ErisCasper-Data/pull/30.diff","patch_url":"https://github.com/princesslana/ErisCasper-Data/pull/30.patch","issue_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/issues/30","number":30,"state":"open","locked":false,"title":"Gateway Payloads","user":{"login":"ianagbip1oti","id":26780798,"node_id":"MDQ6VXNlcjI2NzgwNzk4","avatar_url":"https://avatars2.githubusercontent.com/u/26780798?v=4","gravatar_id":"","url":"https://api.github.com/users/ianagbip1oti","html_url":"https://github.com/ianagbip1oti","followers_url":"https://api.github.com/users/ianagbip1oti/followers","following_url":"https://api.github.com/users/ianagbip1oti/following{/other_user}","gists_url":"https://api.github.com/users/ianagbip1oti/gists{/gist_id}","starred_url":"https://api.github.com/users/ianagbip1oti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianagbip1oti/subscriptions","organizations_url":"https://api.github.com/users/ianagbip1oti/orgs","repos_url":"https://api.github.com/users/ianagbip1oti/repos","events_url":"https://api.github.com/users/ianagbip1oti/events{/privacy}","received_events_url":"https://api.github.com/users/ianagbip1oti/received_events","type":"User","site_admin":false},"body":"Should be reviewed after #29 \r\n\r\nAdds gateway payloads\r\nRefactors some of the codegen code to keep it DRY","created_at":"2018-06-16T20:11:20Z","updated_at":"2018-06-17T02:20:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92aa652904cca0b5c1bc797bfd79eef61b0f86d6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/30/commits","review_comments_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/30/comments","review_comment_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/comments{/number}","comments_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/issues/30/comments","statuses_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/statuses/ff6fbdd3aeca0afdfecd3493c42b7745221466a4","head":{"label":"princesslana:payloads","ref":"payloads","sha":"ff6fbdd3aeca0afdfecd3493c42b7745221466a4","user":{"login":"princesslana","id":37023754,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDIzNzU0","avatar_url":"https://avatars3.githubusercontent.com/u/37023754?v=4","gravatar_id":"","url":"https://api.github.com/users/princesslana","html_url":"https://github.com/princesslana","followers_url":"https://api.github.com/users/princesslana/followers","following_url":"https://api.github.com/users/princesslana/following{/other_user}","gists_url":"https://api.github.com/users/princesslana/gists{/gist_id}","starred_url":"https://api.github.com/users/princesslana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/princesslana/subscriptions","organizations_url":"https://api.github.com/users/princesslana/orgs","repos_url":"https://api.github.com/users/princesslana/repos","events_url":"https://api.github.com/users/princesslana/events{/privacy}","received_events_url":"https://api.github.com/users/princesslana/received_events","type":"Organization","site_admin":false},"repo":{"id":127492965,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc0OTI5NjU=","name":"ErisCasper-Data","full_name":"princesslana/ErisCasper-Data","owner":{"login":"princesslana","id":37023754,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDIzNzU0","avatar_url":"https://avatars3.githubusercontent.com/u/37023754?v=4","gravatar_id":"","url":"https://api.github.com/users/princesslana","html_url":"https://github.com/princesslana","followers_url":"https://api.github.com/users/princesslana/followers","following_url":"https://api.github.com/users/princesslana/following{/other_user}","gists_url":"https://api.github.com/users/princesslana/gists{/gist_id}","starred_url":"https://api.github.com/users/princesslana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/princesslana/subscriptions","organizations_url":"https://api.github.com/users/princesslana/orgs","repos_url":"https://api.github.com/users/princesslana/repos","events_url":"https://api.github.com/users/princesslana/events{/privacy}","received_events_url":"https://api.github.com/users/princesslana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/princesslana/ErisCasper-Data","description":" Code generation of commands, events, requets, and resources used in the Discord API","fork":false,"url":"https://api.github.com/repos/princesslana/ErisCasper-Data","forks_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/forks","keys_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/teams","hooks_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/hooks","issue_events_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/issues/events{/number}","events_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/events","assignees_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/assignees{/user}","branches_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/branches{/branch}","tags_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/tags","blobs_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/git/refs{/sha}","trees_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/statuses/{sha}","languages_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/languages","stargazers_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/stargazers","contributors_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/contributors","subscribers_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/subscribers","subscription_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/subscription","commits_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/commits{/sha}","git_commits_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/git/commits{/sha}","comments_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/comments{/number}","issue_comment_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/issues/comments{/number}","contents_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/contents/{+path}","compare_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/merges","archive_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/downloads","issues_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/issues{/number}","pulls_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls{/number}","milestones_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/milestones{/number}","notifications_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/labels{/name}","releases_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/releases{/id}","deployments_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/deployments","created_at":"2018-03-31T02:46:09Z","updated_at":"2018-06-16T19:53:57Z","pushed_at":"2018-06-16T20:13:30Z","git_url":"git://github.com/princesslana/ErisCasper-Data.git","ssh_url":"git@github.com:princesslana/ErisCasper-Data.git","clone_url":"https://github.com/princesslana/ErisCasper-Data.git","svn_url":"https://github.com/princesslana/ErisCasper-Data","homepage":"https://princesslana.github.io/ErisCasper-Data","size":3128,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"princesslana:master","ref":"master","sha":"c8326768ce10a1e37bf167e5b04c900e495b93a4","user":{"login":"princesslana","id":37023754,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDIzNzU0","avatar_url":"https://avatars3.githubusercontent.com/u/37023754?v=4","gravatar_id":"","url":"https://api.github.com/users/princesslana","html_url":"https://github.com/princesslana","followers_url":"https://api.github.com/users/princesslana/followers","following_url":"https://api.github.com/users/princesslana/following{/other_user}","gists_url":"https://api.github.com/users/princesslana/gists{/gist_id}","starred_url":"https://api.github.com/users/princesslana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/princesslana/subscriptions","organizations_url":"https://api.github.com/users/princesslana/orgs","repos_url":"https://api.github.com/users/princesslana/repos","events_url":"https://api.github.com/users/princesslana/events{/privacy}","received_events_url":"https://api.github.com/users/princesslana/received_events","type":"Organization","site_admin":false},"repo":{"id":127492965,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc0OTI5NjU=","name":"ErisCasper-Data","full_name":"princesslana/ErisCasper-Data","owner":{"login":"princesslana","id":37023754,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDIzNzU0","avatar_url":"https://avatars3.githubusercontent.com/u/37023754?v=4","gravatar_id":"","url":"https://api.github.com/users/princesslana","html_url":"https://github.com/princesslana","followers_url":"https://api.github.com/users/princesslana/followers","following_url":"https://api.github.com/users/princesslana/following{/other_user}","gists_url":"https://api.github.com/users/princesslana/gists{/gist_id}","starred_url":"https://api.github.com/users/princesslana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/princesslana/subscriptions","organizations_url":"https://api.github.com/users/princesslana/orgs","repos_url":"https://api.github.com/users/princesslana/repos","events_url":"https://api.github.com/users/princesslana/events{/privacy}","received_events_url":"https://api.github.com/users/princesslana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/princesslana/ErisCasper-Data","description":" Code generation of commands, events, requets, and resources used in the Discord API","fork":false,"url":"https://api.github.com/repos/princesslana/ErisCasper-Data","forks_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/forks","keys_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/teams","hooks_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/hooks","issue_events_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/issues/events{/number}","events_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/events","assignees_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/assignees{/user}","branches_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/branches{/branch}","tags_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/tags","blobs_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/git/refs{/sha}","trees_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/statuses/{sha}","languages_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/languages","stargazers_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/stargazers","contributors_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/contributors","subscribers_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/subscribers","subscription_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/subscription","commits_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/commits{/sha}","git_commits_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/git/commits{/sha}","comments_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/comments{/number}","issue_comment_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/issues/comments{/number}","contents_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/contents/{+path}","compare_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/merges","archive_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/downloads","issues_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/issues{/number}","pulls_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls{/number}","milestones_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/milestones{/number}","notifications_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/labels{/name}","releases_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/releases{/id}","deployments_url":"https://api.github.com/repos/princesslana/ErisCasper-Data/deployments","created_at":"2018-03-31T02:46:09Z","updated_at":"2018-06-16T19:53:57Z","pushed_at":"2018-06-16T20:13:30Z","git_url":"git://github.com/princesslana/ErisCasper-Data.git","ssh_url":"git@github.com:princesslana/ErisCasper-Data.git","clone_url":"https://github.com/princesslana/ErisCasper-Data.git","svn_url":"https://github.com/princesslana/ErisCasper-Data","homepage":"https://princesslana.github.io/ErisCasper-Data","size":3128,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/30"},"html":{"href":"https://github.com/princesslana/ErisCasper-Data/pull/30"},"issue":{"href":"https://api.github.com/repos/princesslana/ErisCasper-Data/issues/30"},"comments":{"href":"https://api.github.com/repos/princesslana/ErisCasper-Data/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/princesslana/ErisCasper-Data/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/princesslana/ErisCasper-Data/statuses/ff6fbdd3aeca0afdfecd3493c42b7745221466a4"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ianagbip1oti"}}