Method: Datacite::Mapping::Description#initialize

Defined in:
lib/datacite/mapping/description.rb

#initialize(language: nil, type:, value:) ⇒ Description

Initializes a new Datacite::Mapping::Description

Parameters:

  • language (String, nil) (defaults to: nil)

    an IETF BCP 47, ISO 639-1 language code identifying the language.

  • type (DescriptionType)

    the description type.

  • value (String)

    the description itself. See Datacite::Mapping::Description for notes on special handling of <br/> tags.



86
87
88
89
90
# File 'lib/datacite/mapping/description.rb', line 86

def initialize(language: nil, type:, value:)
  self.language = language
  self.type = type
  self.value = value
end