Sha256: 382de0a00a304760e05214b9f8129cc3d85f8366415529f0fab36ae7cd28f404
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 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(source) super @role = source["ContributorRole"] @name = source["PersonName"]["content"] rescue nil @name_collationkey = source["PersonName"]["collationkey"] rescue nil @seqence_number = source["SequenceNumber"] @biographical_note = source["BiographicalNote"] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openbd_api-0.5.0 | lib/openbd/resources/onix/contributor.rb |