Class: Ruboty::YMCrawl::URLUtil

Inherits:
Object
  • Object
show all
Defined in:
lib/ruboty/ymcrawl/crawler.rb

Overview

URLに関する処理をまとめたクラス

Class Method Summary collapse

Class Method Details

.normalize_url(url) ⇒ Object



11
12
13
14
# File 'lib/ruboty/ymcrawl/crawler.rb', line 11

def self.normalize_url(url)
  puts "---- URL is null in normalize_url!!!!!!!!!!!!! ----" if url == nil
  Addressable::URI.parse(url).normalize.to_s
end