Class: EasySitemap::Parser
- Inherits:
-
Object
- Object
- EasySitemap::Parser
- Defined in:
- lib/easy_sitemap/parser.rb
Class Method Summary collapse
Class Method Details
.group_result(result) ⇒ Object
4 5 6 |
# File 'lib/easy_sitemap/parser.rb', line 4 def self.group_result(result) Hash[*result.group_by { |k, v| v["status"] }.map { |key, items| [key, items.count] }.flatten] end |