Class: Ubi::Memoria::Social
Overview
Social account
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
#==, extract_text, #format, inherited, #initialize, key, name, parse, parse!, #parser, plural, #to_s
Constructor Details
This class inherits a constructor from Ubi::Memoria::Base
Class Method Details
.apps ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/ubi/memorias/social.rb', line 6 def apps { twitter: 'twitter.com', facebook: 'facebook.com', foursquare: 'foursquare.com' } end |
.regex(url = nil) ⇒ Object
14 15 16 |
# File 'lib/ubi/memorias/social.rb', line 14 def regex(url = nil) %r{https?://(?:\w+\.)*(#{url}/.*)} end |