lib/bugzilla/bug.rb
def get_comments(bugs)

      params = {}

      # TODO
      # this construction should be refactored to a method
      params['ids'] = case bugs
      when Array
        bugs
      when Integer || String
        [bugs]
      else
        raise ArgumentError, format('Unknown type of arguments: %s', bugs.class)
      end

      result = comments(params)

      # not supporting comment_ids. so drop "comments".
      ret = result['bugs']
      # creation_time was added in Bugzilla 4.4. copy the 'time' value to creation_time if not available for compatibility.
      unless check_version(4.4)[0]
        ret.each do |_id, o|
          o['comments'].each do |c|
            c['creation_time'] = c['time'] unless c.include?('creation_time')
          end
        end
      end

      ret
    end
def get_comments(bugs)

      params = {}

      # TODO
      # this construction should be refactored to a method
      params['ids'] = case bugs
      when Array
        bugs
      when Integer || String
        [bugs]
      else
        raise ArgumentError, format('Unknown type of arguments: %s', bugs.class)
      end

      result = comments(params)

      # not supporting comment_ids. so drop "comments".
      ret = result['bugs']
      # creation_time was added in Bugzilla 4.4. copy the 'time' value to creation_time if not available for compatibility.
      unless check_version(4.4)[0]
        ret.each do |_id, o|
          o['comments'].each do |c|
            c['creation_time'] = c['time'] unless c.include?('creation_time')
          end
        end
      end

      ret
    end
def get_bugs
 rdoc

 ==== Bugzilla::Bug#get_comments(bugs)