Class: NetworkProfile::FacebookProfile

Inherits:
NetworkProfileWithoutExtraction show all
Defined in:
lib/network_profile/extractors/facebook_profile.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from NetworkProfileWithoutExtraction

#data, #title

Methods inherited from DefaultProfile

all_types, auto_extractor_link_types, #data, #extra_data, #image, #initialize, parse, #text, #title

Constructor Details

This class inherits a constructor from NetworkProfile::DefaultProfile

Class Method Details

.handle?(link) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/network_profile/extractors/facebook_profile.rb', line 7

def self.handle?(link)
  (e = link[%r{facebook.com/([\w\.]+)}, 1]) && e.length > 3 && e != 'groups'
end

Instance Method Details

#profile_descriptionObject



11
12
13
# File 'lib/network_profile/extractors/facebook_profile.rb', line 11

def profile_description
  "Facebook Profil:"
end