diff --git a/lib/gitlab/objectified_hash.rb b/lib/gitlab/objectified_hash.rb index 5a67c4729..37bb3af49 100644 --- a/lib/gitlab/objectified_hash.rb +++ b/lib/gitlab/objectified_hash.rb @@ -1,8 +1,6 @@ module Gitlab # Converts hashes to the objects. class ObjectifiedHash - attr_reader :data - # Creates a new ObjectifiedHash. def initialize(hash) @data = hash.inject({}) do |data, (key,value)| @@ -14,7 +12,7 @@ def initialize(hash) # Patches Object#id in Ruby 1.8 def id - self.data['id'] + @data['id'] end # Delegate to ObjectifiedHash