lib/ticketmaster-bugzilla.rb in ticketmaster-bugzilla-0.0.3 vs lib/ticketmaster-bugzilla.rb in ticketmaster-bugzilla-0.0.4
- old
+ new
@@ -6,10 +6,10 @@
if attributes.empty?
attributes.merge!(:last_change_time => Time.now-30*24*60*60)
end
attributes.merge!(:product => self.name, :limit => 100)
result = Bugzilla.server.call("Bug.search", attributes)
- result["bugs"]
+ result["bugs"].collect { |bug| Bug.new bug["id"] }
end
end
class Bug
def comments(attributes = {})