Sha256: 60a5e8261e54e49a2b4ff7cc1c5cc7164cfe8dcd8f5d6ca3a4459923ceb0d032
Contents?: true
Size: 565 Bytes
Versions: 12
Compression:
Stored size: 565 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 = self.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
12 entries across 12 versions & 1 rubygems