Class: OpenBD::Resources::Onix::Contributor
- Inherits:
-
BaseResource
- Object
- BaseResource
- OpenBD::Resources::Onix::Contributor
- Defined in:
- lib/openbd/resources/onix/contributor.rb
Overview
Authorship (Contributor)
This class is used in DescriptiveDetail as Contributor
Instance Attribute Summary collapse
-
#biographical_note ⇒ Object
readonly
Biographical Note (著者略歴).
-
#name ⇒ Object
readonly
Contributor’s Name (著者名).
-
#name_colationkey ⇒ Object
readonly
Collationkey of Contributor’s Name (著者名読み).
-
#role ⇒ Array<String>
readonly
Contributor’s Role (著者区分).
-
#seqence_number ⇒ String
readonly
Sequence number of Contributor (著者順序).
Attributes inherited from BaseResource
Instance Method Summary collapse
-
#initialize(source) ⇒ Contributor
constructor
A new instance of Contributor.
Constructor Details
#initialize(source) ⇒ Contributor
Returns a new instance of Contributor.
29 30 31 32 33 34 35 36 |
# File 'lib/openbd/resources/onix/contributor.rb', line 29 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 |
Instance Attribute Details
#biographical_note ⇒ Object (readonly)
Biographical Note (著者略歴)
27 28 29 |
# File 'lib/openbd/resources/onix/contributor.rb', line 27 def biographical_note @biographical_note end |
#name ⇒ Object (readonly)
Contributor’s Name (著者名)
17 18 19 |
# File 'lib/openbd/resources/onix/contributor.rb', line 17 def name @name end |
#name_colationkey ⇒ Object (readonly)
Collationkey of Contributor’s Name (著者名読み)
20 21 22 |
# File 'lib/openbd/resources/onix/contributor.rb', line 20 def name_colationkey @name_colationkey end |
#role ⇒ Array<String> (readonly)
Contributor’s Role (著者区分)
14 15 16 |
# File 'lib/openbd/resources/onix/contributor.rb', line 14 def role @role end |
#seqence_number ⇒ String (readonly)
Sequence number of Contributor (著者順序)
24 25 26 |
# File 'lib/openbd/resources/onix/contributor.rb', line 24 def seqence_number @seqence_number end |