osunyorg/admin

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

Summary

Maintainability
A
0 mins
Test Coverage
class ContactDetails::Youtube < ContactDetails::SocialNetwork

  protected

  def url
    'https://www.youtube.com/@'
  end

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