In Ruby 1.9, `[]` cannot be used to access an OpenStruct attribute