Sha256: 90c7367cffa792c86ab34783f4e562aae57c5f19c9006461d2fa746fd35c677d

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 Bytes

Contents

require 'berkeley_library/marc/field_info/var_fields/obsolescible'

module BerkeleyLibrary
  module Marc
    module FieldInfo
      module VarFields
        # An instrument or voices code.
        class InstrumentOrVoicesCode
          # TODO: include Comparable
          include Obsolescible

          attr_reader :val
          attr_reader :desc

          def initialize(val:, desc:)
            @val = val
            @desc = desc
          end

          # see Object#to_s
          def to_s
            "#{val} - #{desc}"
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
berkeley_library-marc-0.3.1 lib/berkeley_library/marc/field_info/var_fields/instrument_or_voices_code.rb
berkeley_library-marc-0.3.0 lib/berkeley_library/marc/field_info/var_fields/instrument_or_voices_code.rb