noesya/osuny

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ContactDetails::Phone < ContactDetails::Base

  protected

  def prepare_value
    super
    @value.remove! ' '
    @value.remove! '.'
    @value = "tel:#{@value}"
  end

  def prepare_label
    super
    @label.gsub! '.', ' '
  end
end