noesya/osuny

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

Summary

Maintainability
A
0 mins
Test Coverage
B
80%
class ContactDetails::SocialNetwork < ContactDetails::Base

  protected

  def url
    ''
  end

  def prepare_value
    @value = "#{url}#{handle}"
  end

  def prepare_label
    @label = handle
  end

  def handle
    @string
  end
end