Class: NetworkProfile::InstagramProfile

Inherits:
NetworkProfileWithoutExtraction show all
Defined in:
lib/network_profile/extractors/instagram_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)


6
7
8
# File 'lib/network_profile/extractors/instagram_profile.rb', line 6

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

Instance Method Details

#profile_descriptionObject



10
11
12
# File 'lib/network_profile/extractors/instagram_profile.rb', line 10

def profile_description
  "Instagram Profil:"
end