{"action":"reopened","number":42,"pull_request":{"url":"https://api.github.com/repos/apotonick/disposable/pulls/42","id":69268883,"html_url":"https://github.com/apotonick/disposable/pull/42","diff_url":"https://github.com/apotonick/disposable/pull/42.diff","patch_url":"https://github.com/apotonick/disposable/pull/42.patch","issue_url":"https://api.github.com/repos/apotonick/disposable/issues/42","number":42,"state":"open","locked":false,"title":"Add :accessor for avoiding defining accessors","user":{"login":"janko-m","id":795488,"avatar_url":"https://avatars.githubusercontent.com/u/795488?v=3","gravatar_id":"","url":"https://api.github.com/users/janko-m","html_url":"https://github.com/janko-m","followers_url":"https://api.github.com/users/janko-m/followers","following_url":"https://api.github.com/users/janko-m/following{/other_user}","gists_url":"https://api.github.com/users/janko-m/gists{/gist_id}","starred_url":"https://api.github.com/users/janko-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janko-m/subscriptions","organizations_url":"https://api.github.com/users/janko-m/orgs","repos_url":"https://api.github.com/users/janko-m/repos","events_url":"https://api.github.com/users/janko-m/events{/privacy}","received_events_url":"https://api.github.com/users/janko-m/received_events","type":"User","site_admin":false},"body":"If we have an accessor defined before declaring a property in an included module, it will get overriden. The `:accessor` option allows us to specify whether we want Disposable::Twin to define accessors for that property.\r\n\r\n```rb\r\nmodule Titleable\r\n  def title\r\n    # ...\r\n  end\r\n\r\n  def title=(value)\r\n    # ...\r\n  end\r\nend\r\n\r\nclass Song < Disposable::Twin\r\n  include Titleable\r\n  property :title, accessor: false\r\nend\r\n```\r\n\r\nI know this is probably a fairly uncommon scenario, but I needed this in [Shrine](https://github.com/janko-m/shrine).","created_at":"2016-05-08T13:23:43Z","updated_at":"2016-05-09T01:37:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"101c05f2842058ac6e3ad70a92725b3bd673d4e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apotonick/disposable/pulls/42/commits","review_comments_url":"https://api.github.com/repos/apotonick/disposable/pulls/42/comments","review_comment_url":"https://api.github.com/repos/apotonick/disposable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apotonick/disposable/issues/42/comments","statuses_url":"https://api.github.com/repos/apotonick/disposable/statuses/8882de60fc137c4534fbcf80edef9c236c771b5b","head":{"label":"janko-m:accessor","ref":"accessor","sha":"8882de60fc137c4534fbcf80edef9c236c771b5b","user":{"login":"janko-m","id":795488,"avatar_url":"https://avatars.githubusercontent.com/u/795488?v=3","gravatar_id":"","url":"https://api.github.com/users/janko-m","html_url":"https://github.com/janko-m","followers_url":"https://api.github.com/users/janko-m/followers","following_url":"https://api.github.com/users/janko-m/following{/other_user}","gists_url":"https://api.github.com/users/janko-m/gists{/gist_id}","starred_url":"https://api.github.com/users/janko-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janko-m/subscriptions","organizations_url":"https://api.github.com/users/janko-m/orgs","repos_url":"https://api.github.com/users/janko-m/repos","events_url":"https://api.github.com/users/janko-m/events{/privacy}","received_events_url":"https://api.github.com/users/janko-m/received_events","type":"User","site_admin":false},"repo":{"id":58313027,"name":"disposable","full_name":"janko-m/disposable","owner":{"login":"janko-m","id":795488,"avatar_url":"https://avatars.githubusercontent.com/u/795488?v=3","gravatar_id":"","url":"https://api.github.com/users/janko-m","html_url":"https://github.com/janko-m","followers_url":"https://api.github.com/users/janko-m/followers","following_url":"https://api.github.com/users/janko-m/following{/other_user}","gists_url":"https://api.github.com/users/janko-m/gists{/gist_id}","starred_url":"https://api.github.com/users/janko-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janko-m/subscriptions","organizations_url":"https://api.github.com/users/janko-m/orgs","repos_url":"https://api.github.com/users/janko-m/repos","events_url":"https://api.github.com/users/janko-m/events{/privacy}","received_events_url":"https://api.github.com/users/janko-m/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/janko-m/disposable","description":"Decorators on top of your ORM layer.","fork":true,"url":"https://api.github.com/repos/janko-m/disposable","forks_url":"https://api.github.com/repos/janko-m/disposable/forks","keys_url":"https://api.github.com/repos/janko-m/disposable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/janko-m/disposable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/janko-m/disposable/teams","hooks_url":"https://api.github.com/repos/janko-m/disposable/hooks","issue_events_url":"https://api.github.com/repos/janko-m/disposable/issues/events{/number}","events_url":"https://api.github.com/repos/janko-m/disposable/events","assignees_url":"https://api.github.com/repos/janko-m/disposable/assignees{/user}","branches_url":"https://api.github.com/repos/janko-m/disposable/branches{/branch}","tags_url":"https://api.github.com/repos/janko-m/disposable/tags","blobs_url":"https://api.github.com/repos/janko-m/disposable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/janko-m/disposable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/janko-m/disposable/git/refs{/sha}","trees_url":"https://api.github.com/repos/janko-m/disposable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/janko-m/disposable/statuses/{sha}","languages_url":"https://api.github.com/repos/janko-m/disposable/languages","stargazers_url":"https://api.github.com/repos/janko-m/disposable/stargazers","contributors_url":"https://api.github.com/repos/janko-m/disposable/contributors","subscribers_url":"https://api.github.com/repos/janko-m/disposable/subscribers","subscription_url":"https://api.github.com/repos/janko-m/disposable/subscription","commits_url":"https://api.github.com/repos/janko-m/disposable/commits{/sha}","git_commits_url":"https://api.github.com/repos/janko-m/disposable/git/commits{/sha}","comments_url":"https://api.github.com/repos/janko-m/disposable/comments{/number}","issue_comment_url":"https://api.github.com/repos/janko-m/disposable/issues/comments{/number}","contents_url":"https://api.github.com/repos/janko-m/disposable/contents/{+path}","compare_url":"https://api.github.com/repos/janko-m/disposable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/janko-m/disposable/merges","archive_url":"https://api.github.com/repos/janko-m/disposable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/janko-m/disposable/downloads","issues_url":"https://api.github.com/repos/janko-m/disposable/issues{/number}","pulls_url":"https://api.github.com/repos/janko-m/disposable/pulls{/number}","milestones_url":"https://api.github.com/repos/janko-m/disposable/milestones{/number}","notifications_url":"https://api.github.com/repos/janko-m/disposable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/janko-m/disposable/labels{/name}","releases_url":"https://api.github.com/repos/janko-m/disposable/releases{/id}","deployments_url":"https://api.github.com/repos/janko-m/disposable/deployments","created_at":"2016-05-08T13:21:19Z","updated_at":"2016-05-08T13:21:20Z","pushed_at":"2016-05-09T01:36:10Z","git_url":"git://github.com/janko-m/disposable.git","ssh_url":"git@github.com:janko-m/disposable.git","clone_url":"https://github.com/janko-m/disposable.git","svn_url":"https://github.com/janko-m/disposable","homepage":"","size":528,"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":"apotonick:master","ref":"master","sha":"613ea40c9ba76c6151a9921324e2c1f69d1c6420","user":{"login":"apotonick","id":10406,"avatar_url":"https://avatars.githubusercontent.com/u/10406?v=3","gravatar_id":"","url":"https://api.github.com/users/apotonick","html_url":"https://github.com/apotonick","followers_url":"https://api.github.com/users/apotonick/followers","following_url":"https://api.github.com/users/apotonick/following{/other_user}","gists_url":"https://api.github.com/users/apotonick/gists{/gist_id}","starred_url":"https://api.github.com/users/apotonick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apotonick/subscriptions","organizations_url":"https://api.github.com/users/apotonick/orgs","repos_url":"https://api.github.com/users/apotonick/repos","events_url":"https://api.github.com/users/apotonick/events{/privacy}","received_events_url":"https://api.github.com/users/apotonick/received_events","type":"User","site_admin":false},"repo":{"id":14542256,"name":"disposable","full_name":"apotonick/disposable","owner":{"login":"apotonick","id":10406,"avatar_url":"https://avatars.githubusercontent.com/u/10406?v=3","gravatar_id":"","url":"https://api.github.com/users/apotonick","html_url":"https://github.com/apotonick","followers_url":"https://api.github.com/users/apotonick/followers","following_url":"https://api.github.com/users/apotonick/following{/other_user}","gists_url":"https://api.github.com/users/apotonick/gists{/gist_id}","starred_url":"https://api.github.com/users/apotonick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apotonick/subscriptions","organizations_url":"https://api.github.com/users/apotonick/orgs","repos_url":"https://api.github.com/users/apotonick/repos","events_url":"https://api.github.com/users/apotonick/events{/privacy}","received_events_url":"https://api.github.com/users/apotonick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apotonick/disposable","description":"Decorators on top of your ORM layer.","fork":false,"url":"https://api.github.com/repos/apotonick/disposable","forks_url":"https://api.github.com/repos/apotonick/disposable/forks","keys_url":"https://api.github.com/repos/apotonick/disposable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apotonick/disposable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apotonick/disposable/teams","hooks_url":"https://api.github.com/repos/apotonick/disposable/hooks","issue_events_url":"https://api.github.com/repos/apotonick/disposable/issues/events{/number}","events_url":"https://api.github.com/repos/apotonick/disposable/events","assignees_url":"https://api.github.com/repos/apotonick/disposable/assignees{/user}","branches_url":"https://api.github.com/repos/apotonick/disposable/branches{/branch}","tags_url":"https://api.github.com/repos/apotonick/disposable/tags","blobs_url":"https://api.github.com/repos/apotonick/disposable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apotonick/disposable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apotonick/disposable/git/refs{/sha}","trees_url":"https://api.github.com/repos/apotonick/disposable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apotonick/disposable/statuses/{sha}","languages_url":"https://api.github.com/repos/apotonick/disposable/languages","stargazers_url":"https://api.github.com/repos/apotonick/disposable/stargazers","contributors_url":"https://api.github.com/repos/apotonick/disposable/contributors","subscribers_url":"https://api.github.com/repos/apotonick/disposable/subscribers","subscription_url":"https://api.github.com/repos/apotonick/disposable/subscription","commits_url":"https://api.github.com/repos/apotonick/disposable/commits{/sha}","git_commits_url":"https://api.github.com/repos/apotonick/disposable/git/commits{/sha}","comments_url":"https://api.github.com/repos/apotonick/disposable/comments{/number}","issue_comment_url":"https://api.github.com/repos/apotonick/disposable/issues/comments{/number}","contents_url":"https://api.github.com/repos/apotonick/disposable/contents/{+path}","compare_url":"https://api.github.com/repos/apotonick/disposable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apotonick/disposable/merges","archive_url":"https://api.github.com/repos/apotonick/disposable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apotonick/disposable/downloads","issues_url":"https://api.github.com/repos/apotonick/disposable/issues{/number}","pulls_url":"https://api.github.com/repos/apotonick/disposable/pulls{/number}","milestones_url":"https://api.github.com/repos/apotonick/disposable/milestones{/number}","notifications_url":"https://api.github.com/repos/apotonick/disposable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apotonick/disposable/labels{/name}","releases_url":"https://api.github.com/repos/apotonick/disposable/releases{/id}","deployments_url":"https://api.github.com/repos/apotonick/disposable/deployments","created_at":"2013-11-20T00:31:01Z","updated_at":"2016-05-05T14:49:57Z","pushed_at":"2016-05-08T13:23:43Z","git_url":"git://github.com/apotonick/disposable.git","ssh_url":"git@github.com:apotonick/disposable.git","clone_url":"https://github.com/apotonick/disposable.git","svn_url":"https://github.com/apotonick/disposable","homepage":"","size":535,"stargazers_count":68,"watchers_count":68,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":13,"forks":17,"open_issues":13,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apotonick/disposable/pulls/42"},"html":{"href":"https://github.com/apotonick/disposable/pull/42"},"issue":{"href":"https://api.github.com/repos/apotonick/disposable/issues/42"},"comments":{"href":"https://api.github.com/repos/apotonick/disposable/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/apotonick/disposable/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/apotonick/disposable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apotonick/disposable/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/apotonick/disposable/statuses/8882de60fc137c4534fbcf80edef9c236c771b5b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":28,"deletions":1,"changed_files":2}}