title: Undefined method `bytesize' for #<Hash>
body: <p>I'd like to store and update blogger labels to datastore in GAE.
  When I run that code, I get this error:</p>
  
  <pre><code>javax.servlet.ServletContext log: Application Error
  /base/data/home/apps/yet-another-problem/1.334886515480009498/WEB-INF/gems/gems/sinatra-0.9.2/lib/sinatra/base.rb:45:in `each': undefined method `bytesize' for #&lt;Hash:0x86684c&gt; (NoMethodError)
  </code></pre>
  
  <h2>The Code</h2>
  
  <pre><code>class Labels
     class LabelData
      include Bumble
      ds :blog_element_labels
     end
  
    def update
      response = URLFetch.get($label_url)
      result = response.to_s
      result_headless = result.gsub("listLabels(",'')
      pure_result = result_headless.gsub(");",'')
      json_to_yaml = YAML::load(pure_result)['entry']['category']
  
      json_to_yaml.each do |label|
      @label = LabelData.find(:blog_element_labels =&gt; label['term'])
      @label = LabelData.create(:blog_element_labels =&gt; label['term']) if @label.nil?
      end
    end
  end
  </code></pre>
  
  <p>and run by cron job does '/job'</p>
  
  <pre><code>get '/job' do
    @labels = Labels.new
    @labels.update
  end
  </code></pre>
  
  <p>Where is the problem? Please teach me.</p>
  
  <p>But when run cron job first time, label data was stored, even occur that error.
  Could not update data.</p>