Sha256: 30d9ce79f2f1efbdf925e69d7a2fa0f539f8bc03562ecd13c8ee1cf45893cfbf
Contents?: true
Size: 558 Bytes
Versions: 4
Compression:
Stored size: 558 Bytes
Contents
# frozen_string_literal: true # This module provides the body of an email export based on the document's semantic values module Blacklight::Document::Sms # Return a text string that will be the body of the email def to_sms_text semantics = to_semantic_values body = [] body << I18n.t('blacklight.sms.text.title', value: semantics[:title].first) unless semantics[:title].blank? body << I18n.t('blacklight.sms.text.author', value: semantics[:author].first) unless semantics[:author].blank? return body.join unless body.empty? end end
Version data entries
4 entries across 4 versions & 1 rubygems