class DigitalBiblePlatform::DamId
Public Class Methods
full(options={})
click to toggle source
Example ENGESVN2DA
# File lib/digital_bible_platform/dam_id.rb, line 15 def full(options={}) collection = if options[:book] Codes.collection_from_book options[:book] else Codes.collection options[:collection] end [ (Codes.language options[:language] ), (Codes.version options[:version] ), (collection ), (Codes.drama options[:drama] ), (Codes.media options[:media] ), ].join('').upcase end
partial(options={})
click to toggle source
Example ENGESV
# File lib/digital_bible_platform/dam_id.rb, line 8 def partial(options={}) [ (Codes.language options[:language] ), (Codes.version options[:version] ), ].join('').upcase end