noesya/osuny

View on GitHub
app/services/contact_details/facebook.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ContactDetails::Facebook < ContactDetails::SocialNetwork

  protected

  def url
    'https://www.facebook.com/'
  end

  def handle
    @handle ||=  @string.remove('https://')
                        .remove('http://')
                        .remove('www.')
                        .remove('facebook.com')
                        .remove('@')
                        .remove('/')
  end
end