Sha256: 323635833aeea11e3df3e16524d40934cce0fcdb73e6d1d7354d26b72405c162
Contents?: true
Size: 483 Bytes
Versions: 17
Compression:
Stored size: 483 Bytes
Contents
# -*- encoding : utf-8 -*- # 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
17 entries across 17 versions & 1 rubygems