class ContentBlockTools::Presenters::BlockPresenters::Contact::EmailAddressPresenter
def email
def email content_tag(:p) do concat content_tag(:span, item[:title]) concat content_tag(:a, item[:email_address], class: "email", href: "mailto:#{item[:email_address]}#{query_params}") end end
def query_params
def query_params params = { subject: item[:subject], body: item[:body], }.compact.map { |k, v| "#{k}=#{v}" }.join("&") "?#{params}" if params.present? end
def render
def render wrapper do content_tag(:div, class: "email-url-number") do concat email concat render_govspeak(item[:description]) if item[:description].present? end end end