lib/muddyit/sites/entities.rb in monkeyhelper-muddyit_fu-0.2.3 vs lib/muddyit/sites/entities.rb in monkeyhelper-muddyit_fu-0.2.4

- old
+ new

@@ -12,11 +12,10 @@ api_url = "/sites/#{self.site.attributes[:token]}/entities/#{Digest::MD5.hexdigest(uri)}/related" response = @muddyit.send_request(api_url, :get, options) results = [] response.each { |result| - # The return format needs sorting out here ....... - results.push Muddyit::Sites::Site::Entities::Entity.new(@muddyit, result) + results.push :count => result.delete('count'), :entity => Muddyit::Sites::Site::Entities::Entity.new(@muddyit, result) } return results end end