Sha256: 9bb1f740db946cc8db9cb6205a70861da72acf2e1ef7dbff8a9010ec5d7d436c

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

module Ubi
  module Memoria
    # Social account
    class Social < Base
      class << self
        def apps
          {
            twitter: 'twitter.com',
            facebook: 'facebook.com',
            foursquare: 'foursquare.com'
          }
        end

        def regex(url = nil)
          %r{https?://(?:\w+\.)*(#{url}/.*)}
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ubi-0.0.8 lib/ubi/memorias/social.rb
ubi-0.0.7 lib/ubi/memorias/social.rb