{"action":"created","issue":{"url":"https://api.github.com/repos/gazay/gon/issues/176","labels_url":"https://api.github.com/repos/gazay/gon/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/gazay/gon/issues/176/comments","events_url":"https://api.github.com/repos/gazay/gon/issues/176/events","html_url":"https://github.com/gazay/gon/issues/176","id":73635416,"number":176,"title":"RuntimeError is raised when I use gon.name","user":{"login":"takiy33","id":3800237,"avatar_url":"https://avatars.githubusercontent.com/u/3800237?v=3","gravatar_id":"","url":"https://api.github.com/users/takiy33","html_url":"https://github.com/takiy33","followers_url":"https://api.github.com/users/takiy33/followers","following_url":"https://api.github.com/users/takiy33/following{/other_user}","gists_url":"https://api.github.com/users/takiy33/gists{/gist_id}","starred_url":"https://api.github.com/users/takiy33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takiy33/subscriptions","organizations_url":"https://api.github.com/users/takiy33/orgs","repos_url":"https://api.github.com/users/takiy33/repos","events_url":"https://api.github.com/users/takiy33/events{/privacy}","received_events_url":"https://api.github.com/users/takiy33/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T14:16:22Z","updated_at":"2015-05-06T15:43:18Z","closed_at":null,"body":"*RuntimeError (You can't use Gon public methods for storing data)* is raised when I use gon.name.\r\n\r\n## Environment\r\n\r\nEnvironment|Version\r\n---|----\r\nRuby|ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]\r\nRails|4.2.1\r\ngon|5.2.3\r\n"},"comment":{"url":"https://api.github.com/repos/gazay/gon/issues/comments/99517722","html_url":"https://github.com/gazay/gon/issues/176#issuecomment-99517722","issue_url":"https://api.github.com/repos/gazay/gon/issues/176","id":99517722,"user":{"login":"gazay","id":29658,"avatar_url":"https://avatars.githubusercontent.com/u/29658?v=3","gravatar_id":"","url":"https://api.github.com/users/gazay","html_url":"https://github.com/gazay","followers_url":"https://api.github.com/users/gazay/followers","following_url":"https://api.github.com/users/gazay/following{/other_user}","gists_url":"https://api.github.com/users/gazay/gists{/gist_id}","starred_url":"https://api.github.com/users/gazay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gazay/subscriptions","organizations_url":"https://api.github.com/users/gazay/orgs","repos_url":"https://api.github.com/users/gazay/repos","events_url":"https://api.github.com/users/gazay/events{/privacy}","received_events_url":"https://api.github.com/users/gazay/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T15:43:18Z","updated_at":"2015-05-06T15:43:18Z","body":"Hello, yes it is expected behavior as gon using metaprogramming to set variables as methods of gon class. So it doesn't allow to use public methods as variable names because it can break functionality of whole gem. Please try different name, like `user_name`"}}