{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby-record/issues/69","repository_url":"https://api.github.com/repos/aws/aws-sdk-ruby-record","labels_url":"https://api.github.com/repos/aws/aws-sdk-ruby-record/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ruby-record/issues/69/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ruby-record/issues/69/events","html_url":"https://github.com/aws/aws-sdk-ruby-record/issues/69","id":235697360,"number":69,"title":"Attribute's default_value can be modified","user":{"login":"natesalisbury","id":1263438,"avatar_url":"https://avatars0.githubusercontent.com/u/1263438?v=3","gravatar_id":"","url":"https://api.github.com/users/natesalisbury","html_url":"https://github.com/natesalisbury","followers_url":"https://api.github.com/users/natesalisbury/followers","following_url":"https://api.github.com/users/natesalisbury/following{/other_user}","gists_url":"https://api.github.com/users/natesalisbury/gists{/gist_id}","starred_url":"https://api.github.com/users/natesalisbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natesalisbury/subscriptions","organizations_url":"https://api.github.com/users/natesalisbury/orgs","repos_url":"https://api.github.com/users/natesalisbury/repos","events_url":"https://api.github.com/users/natesalisbury/events{/privacy}","received_events_url":"https://api.github.com/users/natesalisbury/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-13T21:23:55Z","updated_at":"2017-06-13T21:28:41Z","closed_at":null,"body":"It's possible to modify an attribute's default_value and have those modifications carry over to new instances of the model. \r\n\r\nExample:\r\n\r\n```ruby\r\nclass MyModel\r\n  include Aws::Record\r\n\r\n  map_attr :things, default_value: {}\r\nend\r\n```\r\n\r\n```ruby\r\n> MyModel.new.things[:foo] = :bar\r\n=> :bar\r\n> MyModel.new.things\r\n=> {:foo=>:bar}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby-record/issues/comments/308254171","html_url":"https://github.com/aws/aws-sdk-ruby-record/issues/69#issuecomment-308254171","issue_url":"https://api.github.com/repos/aws/aws-sdk-ruby-record/issues/69","id":308254171,"user":{"login":"IbottaBaier","id":20647092,"avatar_url":"https://avatars2.githubusercontent.com/u/20647092?v=3","gravatar_id":"","url":"https://api.github.com/users/IbottaBaier","html_url":"https://github.com/IbottaBaier","followers_url":"https://api.github.com/users/IbottaBaier/followers","following_url":"https://api.github.com/users/IbottaBaier/following{/other_user}","gists_url":"https://api.github.com/users/IbottaBaier/gists{/gist_id}","starred_url":"https://api.github.com/users/IbottaBaier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IbottaBaier/subscriptions","organizations_url":"https://api.github.com/users/IbottaBaier/orgs","repos_url":"https://api.github.com/users/IbottaBaier/repos","events_url":"https://api.github.com/users/IbottaBaier/events{/privacy}","received_events_url":"https://api.github.com/users/IbottaBaier/received_events","type":"User","site_admin":false},"created_at":"2017-06-13T21:28:41Z","updated_at":"2017-06-13T21:28:41Z","body":"You aren't really using the default value as it is intended (or at least implemented); default value is what to read if the attribute is not present -- you are treating it more like Hash.of_hashes \"default value\" mechanism (spawning an empty hash when nothing is present). "}}
{"actor":{"display_login":"IbottaBaier"}}