Class: IdsPlease::Tumblr

Inherits:
BaseParser show all
Defined in:
lib/ids_please/tumblr.rb

Constant Summary collapse

MASK =
/tumblr/i

Class Method Summary collapse

Methods inherited from BaseParser

network_name

Class Method Details

.parse(links) ⇒ Object



5
6
7
8
9
10
# File 'lib/ids_please/tumblr.rb', line 5

def self.parse(links)
  links.map do |link|
    next if link.host.sub('.tumblr.com', '') == link.host
    parse_link(link)
  end.compact
end


12
13
14
# File 'lib/ids_please/tumblr.rb', line 12

def self.parse_link(link)
  link.host.sub('.tumblr.com', '')
end