Sha256: 51ad5edfff38c5f5a156263d4db1ac618f9b9b61d146ed0dcec9145c73a21a9b
Contents?: true
Size: 737 Bytes
Versions: 25
Compression:
Stored size: 737 Bytes
Contents
module Exlibris module Primo module WebService module Request module Languages # # Returns a lambda that takes a Nokogiri::XML::Builder as an argument # and appends languages XML to it. # def languages_xml lambda { |xml| xml.Languages { languages.each do |language| xml.Language language end } unless languages.empty? } end protected :languages_xml def languages @languages ||= [] end def add_language(language) languages << language end end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems