{"action":"closed","number":28,"pull_request":{"url":"https://api.github.com/repos/rom-rb/rom-mapper/pulls/28","id":51087300,"html_url":"https://github.com/rom-rb/rom-mapper/pull/28","diff_url":"https://github.com/rom-rb/rom-mapper/pull/28.diff","patch_url":"https://github.com/rom-rb/rom-mapper/pull/28.patch","issue_url":"https://api.github.com/repos/rom-rb/rom-mapper/issues/28","number":28,"state":"closed","locked":false,"title":"Allow attribute's for option to take an array.","user":{"login":"hmadison","id":7558231,"avatar_url":"https://avatars.githubusercontent.com/u/7558231?v=3","gravatar_id":"","url":"https://api.github.com/users/hmadison","html_url":"https://github.com/hmadison","followers_url":"https://api.github.com/users/hmadison/followers","following_url":"https://api.github.com/users/hmadison/following{/other_user}","gists_url":"https://api.github.com/users/hmadison/gists{/gist_id}","starred_url":"https://api.github.com/users/hmadison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmadison/subscriptions","organizations_url":"https://api.github.com/users/hmadison/orgs","repos_url":"https://api.github.com/users/hmadison/repos","events_url":"https://api.github.com/users/hmadison/events{/privacy}","received_events_url":"https://api.github.com/users/hmadison/received_events","type":"User","site_admin":false},"body":"Resolves #23. \r\n\r\nExample:\r\n```ruby\r\ndata = {\r\n  that: 'this',\r\n  this: 'that'\r\n}\r\n\r\nclass MyMapper < ROM::Mapper\r\n  attribute(:that_this, from: [:that, :this]) { |v,a| \"#{v} #{a}\" }\r\nend\r\n\r\nMyMapper.build.call([data]).inspect #=> [{:that_this=>\"this that\"}]\r\n```","created_at":"2015-11-18T14:01:08Z","updated_at":"2015-11-20T16:38:00Z","closed_at":"2015-11-20T16:38:00Z","merged_at":"2015-11-20T16:37:59Z","merge_commit_sha":"475ee5e015747e91ad3127797c9c3dfdbf9e0532","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rom-rb/rom-mapper/pulls/28/commits","review_comments_url":"https://api.github.com/repos/rom-rb/rom-mapper/pulls/28/comments","review_comment_url":"https://api.github.com/repos/rom-rb/rom-mapper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rom-rb/rom-mapper/issues/28/comments","statuses_url":"https://api.github.com/repos/rom-rb/rom-mapper/statuses/a35c107412235febe2a36d64a7ec309ece594e11","head":{"label":"hmadison:hm/attribute-array-from","ref":"hm/attribute-array-from","sha":"a35c107412235febe2a36d64a7ec309ece594e11","user":{"login":"hmadison","id":7558231,"avatar_url":"https://avatars.githubusercontent.com/u/7558231?v=3","gravatar_id":"","url":"https://api.github.com/users/hmadison","html_url":"https://github.com/hmadison","followers_url":"https://api.github.com/users/hmadison/followers","following_url":"https://api.github.com/users/hmadison/following{/other_user}","gists_url":"https://api.github.com/users/hmadison/gists{/gist_id}","starred_url":"https://api.github.com/users/hmadison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmadison/subscriptions","organizations_url":"https://api.github.com/users/hmadison/orgs","repos_url":"https://api.github.com/users/hmadison/repos","events_url":"https://api.github.com/users/hmadison/events{/privacy}","received_events_url":"https://api.github.com/users/hmadison/received_events","type":"User","site_admin":false},"repo":{"id":46307137,"name":"rom-mapper","full_name":"hmadison/rom-mapper","owner":{"login":"hmadison","id":7558231,"avatar_url":"https://avatars.githubusercontent.com/u/7558231?v=3","gravatar_id":"","url":"https://api.github.com/users/hmadison","html_url":"https://github.com/hmadison","followers_url":"https://api.github.com/users/hmadison/followers","following_url":"https://api.github.com/users/hmadison/following{/other_user}","gists_url":"https://api.github.com/users/hmadison/gists{/gist_id}","starred_url":"https://api.github.com/users/hmadison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmadison/subscriptions","organizations_url":"https://api.github.com/users/hmadison/orgs","repos_url":"https://api.github.com/users/hmadison/repos","events_url":"https://api.github.com/users/hmadison/events{/privacy}","received_events_url":"https://api.github.com/users/hmadison/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hmadison/rom-mapper","description":"Standalone ROM mappers","fork":true,"url":"https://api.github.com/repos/hmadison/rom-mapper","forks_url":"https://api.github.com/repos/hmadison/rom-mapper/forks","keys_url":"https://api.github.com/repos/hmadison/rom-mapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmadison/rom-mapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmadison/rom-mapper/teams","hooks_url":"https://api.github.com/repos/hmadison/rom-mapper/hooks","issue_events_url":"https://api.github.com/repos/hmadison/rom-mapper/issues/events{/number}","events_url":"https://api.github.com/repos/hmadison/rom-mapper/events","assignees_url":"https://api.github.com/repos/hmadison/rom-mapper/assignees{/user}","branches_url":"https://api.github.com/repos/hmadison/rom-mapper/branches{/branch}","tags_url":"https://api.github.com/repos/hmadison/rom-mapper/tags","blobs_url":"https://api.github.com/repos/hmadison/rom-mapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmadison/rom-mapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmadison/rom-mapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmadison/rom-mapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmadison/rom-mapper/statuses/{sha}","languages_url":"https://api.github.com/repos/hmadison/rom-mapper/languages","stargazers_url":"https://api.github.com/repos/hmadison/rom-mapper/stargazers","contributors_url":"https://api.github.com/repos/hmadison/rom-mapper/contributors","subscribers_url":"https://api.github.com/repos/hmadison/rom-mapper/subscribers","subscription_url":"https://api.github.com/repos/hmadison/rom-mapper/subscription","commits_url":"https://api.github.com/repos/hmadison/rom-mapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmadison/rom-mapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmadison/rom-mapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmadison/rom-mapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmadison/rom-mapper/contents/{+path}","compare_url":"https://api.github.com/repos/hmadison/rom-mapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmadison/rom-mapper/merges","archive_url":"https://api.github.com/repos/hmadison/rom-mapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmadison/rom-mapper/downloads","issues_url":"https://api.github.com/repos/hmadison/rom-mapper/issues{/number}","pulls_url":"https://api.github.com/repos/hmadison/rom-mapper/pulls{/number}","milestones_url":"https://api.github.com/repos/hmadison/rom-mapper/milestones{/number}","notifications_url":"https://api.github.com/repos/hmadison/rom-mapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmadison/rom-mapper/labels{/name}","releases_url":"https://api.github.com/repos/hmadison/rom-mapper/releases{/id}","created_at":"2015-11-16T22:29:13Z","updated_at":"2015-11-16T22:29:14Z","pushed_at":"2015-11-18T15:44:34Z","git_url":"git://github.com/hmadison/rom-mapper.git","ssh_url":"git@github.com:hmadison/rom-mapper.git","clone_url":"https://github.com/hmadison/rom-mapper.git","svn_url":"https://github.com/hmadison/rom-mapper","homepage":"http://rom-rb.org","size":174,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"rom-rb:master","ref":"master","sha":"e07b7f5a89f0b57fcfe076f45ed729dec9e626ff","user":{"login":"rom-rb","id":4589832,"avatar_url":"https://avatars.githubusercontent.com/u/4589832?v=3","gravatar_id":"","url":"https://api.github.com/users/rom-rb","html_url":"https://github.com/rom-rb","followers_url":"https://api.github.com/users/rom-rb/followers","following_url":"https://api.github.com/users/rom-rb/following{/other_user}","gists_url":"https://api.github.com/users/rom-rb/gists{/gist_id}","starred_url":"https://api.github.com/users/rom-rb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rom-rb/subscriptions","organizations_url":"https://api.github.com/users/rom-rb/orgs","repos_url":"https://api.github.com/users/rom-rb/repos","events_url":"https://api.github.com/users/rom-rb/events{/privacy}","received_events_url":"https://api.github.com/users/rom-rb/received_events","type":"Organization","site_admin":false},"repo":{"id":10484206,"name":"rom-mapper","full_name":"rom-rb/rom-mapper","owner":{"login":"rom-rb","id":4589832,"avatar_url":"https://avatars.githubusercontent.com/u/4589832?v=3","gravatar_id":"","url":"https://api.github.com/users/rom-rb","html_url":"https://github.com/rom-rb","followers_url":"https://api.github.com/users/rom-rb/followers","following_url":"https://api.github.com/users/rom-rb/following{/other_user}","gists_url":"https://api.github.com/users/rom-rb/gists{/gist_id}","starred_url":"https://api.github.com/users/rom-rb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rom-rb/subscriptions","organizations_url":"https://api.github.com/users/rom-rb/orgs","repos_url":"https://api.github.com/users/rom-rb/repos","events_url":"https://api.github.com/users/rom-rb/events{/privacy}","received_events_url":"https://api.github.com/users/rom-rb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rom-rb/rom-mapper","description":"Standalone ROM mappers","fork":false,"url":"https://api.github.com/repos/rom-rb/rom-mapper","forks_url":"https://api.github.com/repos/rom-rb/rom-mapper/forks","keys_url":"https://api.github.com/repos/rom-rb/rom-mapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rom-rb/rom-mapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rom-rb/rom-mapper/teams","hooks_url":"https://api.github.com/repos/rom-rb/rom-mapper/hooks","issue_events_url":"https://api.github.com/repos/rom-rb/rom-mapper/issues/events{/number}","events_url":"https://api.github.com/repos/rom-rb/rom-mapper/events","assignees_url":"https://api.github.com/repos/rom-rb/rom-mapper/assignees{/user}","branches_url":"https://api.github.com/repos/rom-rb/rom-mapper/branches{/branch}","tags_url":"https://api.github.com/repos/rom-rb/rom-mapper/tags","blobs_url":"https://api.github.com/repos/rom-rb/rom-mapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rom-rb/rom-mapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rom-rb/rom-mapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/rom-rb/rom-mapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rom-rb/rom-mapper/statuses/{sha}","languages_url":"https://api.github.com/repos/rom-rb/rom-mapper/languages","stargazers_url":"https://api.github.com/repos/rom-rb/rom-mapper/stargazers","contributors_url":"https://api.github.com/repos/rom-rb/rom-mapper/contributors","subscribers_url":"https://api.github.com/repos/rom-rb/rom-mapper/subscribers","subscription_url":"https://api.github.com/repos/rom-rb/rom-mapper/subscription","commits_url":"https://api.github.com/repos/rom-rb/rom-mapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/rom-rb/rom-mapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/rom-rb/rom-mapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/rom-rb/rom-mapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/rom-rb/rom-mapper/contents/{+path}","compare_url":"https://api.github.com/repos/rom-rb/rom-mapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rom-rb/rom-mapper/merges","archive_url":"https://api.github.com/repos/rom-rb/rom-mapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rom-rb/rom-mapper/downloads","issues_url":"https://api.github.com/repos/rom-rb/rom-mapper/issues{/number}","pulls_url":"https://api.github.com/repos/rom-rb/rom-mapper/pulls{/number}","milestones_url":"https://api.github.com/repos/rom-rb/rom-mapper/milestones{/number}","notifications_url":"https://api.github.com/repos/rom-rb/rom-mapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rom-rb/rom-mapper/labels{/name}","releases_url":"https://api.github.com/repos/rom-rb/rom-mapper/releases{/id}","created_at":"2013-06-04T17:15:18Z","updated_at":"2015-11-14T19:03:55Z","pushed_at":"2015-11-20T16:37:59Z","git_url":"git://github.com/rom-rb/rom-mapper.git","ssh_url":"git@github.com:rom-rb/rom-mapper.git","clone_url":"https://github.com/rom-rb/rom-mapper.git","svn_url":"https://github.com/rom-rb/rom-mapper","homepage":"http://rom-rb.org","size":707,"stargazers_count":54,"watchers_count":54,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":15,"forks":8,"open_issues":15,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rom-rb/rom-mapper/pulls/28"},"html":{"href":"https://github.com/rom-rb/rom-mapper/pull/28"},"issue":{"href":"https://api.github.com/repos/rom-rb/rom-mapper/issues/28"},"comments":{"href":"https://api.github.com/repos/rom-rb/rom-mapper/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/rom-rb/rom-mapper/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/rom-rb/rom-mapper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rom-rb/rom-mapper/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/rom-rb/rom-mapper/statuses/a35c107412235febe2a36d64a7ec309ece594e11"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"solnic","id":1066,"avatar_url":"https://avatars.githubusercontent.com/u/1066?v=3","gravatar_id":"","url":"https://api.github.com/users/solnic","html_url":"https://github.com/solnic","followers_url":"https://api.github.com/users/solnic/followers","following_url":"https://api.github.com/users/solnic/following{/other_user}","gists_url":"https://api.github.com/users/solnic/gists{/gist_id}","starred_url":"https://api.github.com/users/solnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solnic/subscriptions","organizations_url":"https://api.github.com/users/solnic/orgs","repos_url":"https://api.github.com/users/solnic/repos","events_url":"https://api.github.com/users/solnic/events{/privacy}","received_events_url":"https://api.github.com/users/solnic/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":41,"deletions":2,"changed_files":4}}