Sha256: 7b97747697a83cc1e0445dd6f041d99f9e375ffb85312511cb5038842d64e2aa
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
module OpenBD module Resources class Onix ## # Authorship (Contributor) # # This class is used in DescriptiveDetail as Contributor # class Contributor < BaseResource # Contributor's Role (著者区分) # @return [Array<String>] attr_reader :role # Contributor's Name (著者名) attr_reader :name # Collationkey of Contributor's Name (著者名読み) attr_reader :name_colationkey # Sequence number of Contributor (著者順序) # @return [String] attr_reader :seqence_number # Biographical Note (著者略歴) attr_reader :biographical_note def initialize(src) super @role = src["ContributorRole"] @name = src["PersonName"]["content"] rescue nil @name_collationkey = src["PersonName"]["collationkey"] rescue nil @seqence_number = src["SequenceNumber"] @biographical_note = src["BiographicalNote"] end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
openbd_api-0.6.1 | lib/openbd/resources/onix/contributor.rb |
openbd_api-0.6.0 | lib/openbd/resources/onix/contributor.rb |
openbd_api-0.5.1 | lib/openbd/resources/onix/contributor.rb |