{"action":"created","issue":{"url":"https://api.github.com/repos/matthew70/vainglory/issues/5","labels_url":"https://api.github.com/repos/matthew70/vainglory/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/matthew70/vainglory/issues/5/comments","events_url":"https://api.github.com/repos/matthew70/vainglory/issues/5/events","html_url":"https://github.com/matthew70/vainglory/issues/5","id":105033401,"number":5,"title":"ヒーローのステータスのyamlに余分なハッシュ","user":{"login":"mitsuru793","id":8012508,"avatar_url":"https://avatars.githubusercontent.com/u/8012508?v=3","gravatar_id":"","url":"https://api.github.com/users/mitsuru793","html_url":"https://github.com/mitsuru793","followers_url":"https://api.github.com/users/mitsuru793/followers","following_url":"https://api.github.com/users/mitsuru793/following{/other_user}","gists_url":"https://api.github.com/users/mitsuru793/gists{/gist_id}","starred_url":"https://api.github.com/users/mitsuru793/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitsuru793/subscriptions","organizations_url":"https://api.github.com/users/mitsuru793/orgs","repos_url":"https://api.github.com/users/mitsuru793/repos","events_url":"https://api.github.com/users/mitsuru793/events{/privacy}","received_events_url":"https://api.github.com/users/mitsuru793/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"mitsuru793","id":8012508,"avatar_url":"https://avatars.githubusercontent.com/u/8012508?v=3","gravatar_id":"","url":"https://api.github.com/users/mitsuru793","html_url":"https://github.com/mitsuru793","followers_url":"https://api.github.com/users/mitsuru793/followers","following_url":"https://api.github.com/users/mitsuru793/following{/other_user}","gists_url":"https://api.github.com/users/mitsuru793/gists{/gist_id}","starred_url":"https://api.github.com/users/mitsuru793/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitsuru793/subscriptions","organizations_url":"https://api.github.com/users/mitsuru793/orgs","repos_url":"https://api.github.com/users/mitsuru793/repos","events_url":"https://api.github.com/users/mitsuru793/events{/privacy}","received_events_url":"https://api.github.com/users/mitsuru793/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-09-05T15:38:44Z","updated_at":"2015-09-06T12:09:07Z","closed_at":"2015-09-06T12:09:07Z","body":"```ruby\r\n{:name=>\"Rona\",\r\n :status=>\r\n  [[{:name=>\"hp\"}, {:start=>799.0}, {:glow=>90.0}],\r\n   [{:name=>\"hp_regen\"}, {:start=>nil}, {:glow=>nil}],\r\n   [{:name=>\"weapon_damage\"}, {:start=>88.0}, {:glow=>6.2}],\r\n   [{:name=>\"attack_speed\"}, {:start=>1.0}, {:glow=>0.012}],\r\n   [{:name=>\"armor\"}, {:start=>20.0}, {:glow=>6.0}],\r\n   [{:name=>\"shield\"}, {:start=>20.0}, {:glow=>6.0}],\r\n   [{:name=>\"attack_range\"}, {:start=>1.8}, {:glow=>nil}],\r\n   [{:name=>\"move_speed\"}, {:start=>3.3}, {:glow=>nil}]]}\r\n```\r\n\r\n試しにロナのデータを読み込むと分かりますが、`[{:name=>\"hp\"}, {:start=>799.0}, {:glow=>90.0}],`は`{:name=>\"hp\", :start=>799.0, :glow=>90.0},`という形で済むはずです。\r\n\r\nつまり、今は1つのステータスが1つのハッシュではなく、各項目を1つのハッシュとした配列になっています。"},"comment":{"url":"https://api.github.com/repos/matthew70/vainglory/issues/comments/138077860","html_url":"https://github.com/matthew70/vainglory/issues/5#issuecomment-138077860","issue_url":"https://api.github.com/repos/matthew70/vainglory/issues/5","id":138077860,"user":{"login":"mitsuru793","id":8012508,"avatar_url":"https://avatars.githubusercontent.com/u/8012508?v=3","gravatar_id":"","url":"https://api.github.com/users/mitsuru793","html_url":"https://github.com/mitsuru793","followers_url":"https://api.github.com/users/mitsuru793/followers","following_url":"https://api.github.com/users/mitsuru793/following{/other_user}","gists_url":"https://api.github.com/users/mitsuru793/gists{/gist_id}","starred_url":"https://api.github.com/users/mitsuru793/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitsuru793/subscriptions","organizations_url":"https://api.github.com/users/mitsuru793/orgs","repos_url":"https://api.github.com/users/mitsuru793/repos","events_url":"https://api.github.com/users/mitsuru793/events{/privacy}","received_events_url":"https://api.github.com/users/mitsuru793/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T12:09:06Z","updated_at":"2015-09-06T12:09:06Z","body":"私は他のを知らないので、一般化しているならそれに合わせたほうがいいかもしれませんね。\r\n内部的に使うのならシンボルで高速化するのもいいかもしれません。\r\nでも書くときは楽なので悩みどころです。\r\n\r\nとりあえず、ハッシュの構造は修正したのでこのissueはcloseします。\r\nkeyの問題は必要な際に、また別issueでお願いします。"}}