Sha256: d818fc4875b1aa0fe75b9b6d27e89a8d7712b7590779305fde6f690e8ee5827a
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
module RelatonBib class Classification # @return [String, NilClass] attr_reader :type # @return [String] attr_reader :value # @param type [String, NilClass] # @param value [String] def initialize(type: nil, value:) @type = type @value = value end # @param builder [Nokogiri::XML::Builder] def to_xml(builder) xml = builder.classification value xml[:type] = type if type end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
relaton-bib-0.3.3 | lib/relaton_bib/classification.rb |
relaton-bib-0.3.2 | lib/relaton_bib/classification.rb |