Sha256: 581eed927354ce755d38529e4974bf2f6b738e0ab20704d0ddb89fb5c2297b2e
Contents?: true
Size: 456 Bytes
Versions: 5
Compression:
Stored size: 456 Bytes
Contents
# This module provides the body of an email export based on the document's semantic values module Blacklight::Solr::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 << semantics[:title].first unless semantics[:title].blank? body << " by #{semantics[:author].first}" unless semantics[:author].blank? return body unless body.blank? end end
Version data entries
5 entries across 5 versions & 1 rubygems