Class: IdsPlease::Parsers::Tumblr

Inherits:
Base
  • Object
show all
Defined in:
lib/ids_please/parsers/tumblr.rb

Constant Summary collapse

MASK =
/tumblr/i

Class Method Summary collapse

Methods inherited from Base

interact, to_sym, valid_id_regex

Class Method Details



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

def parse_link(link)
  return if link.host.sub('.tumblr.com', '') == link.host
  link.host.sub('.tumblr.com', '')
end