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

to_sym

Class Method Details

.parse(links) ⇒ Object



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

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


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

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