Class: CommonCartridge::Elements::Lom::Title

Inherits:
Object
  • Object
show all
Includes:
SAXMachine
Defined in:
lib/common_cartridge/elements/lom.rb

Instance Method Summary collapse

Instance Method Details

#languageObject



19
# File 'lib/common_cartridge/elements/lom.rb', line 19

def language; strings.first.language; end

#to_sObject



27
# File 'lib/common_cartridge/elements/lom.rb', line 27

def to_s; string; end

#valueObject

backward compatibility



18
# File 'lib/common_cartridge/elements/lom.rb', line 18

def value; strings.first.value; end

#valuesObject



21
22
23
24
25
# File 'lib/common_cartridge/elements/lom.rb', line 21

def values
  strings.map do |str|
    [str.language, str.value]
  end.to_h
end