Class: OpenBD::Resources::Onix::Publisher
- Inherits:
-
Object
- Object
- OpenBD::Resources::Onix::Publisher
- Defined in:
- lib/openbd/resources/onix/publisher.rb
Overview
Publisher / Imprint
This class is used in PublishingDetail
Instance Attribute Summary collapse
-
#distribution_id ⇒ Object
readonly
JP Distribution Identifier (取引コード).
-
#name ⇒ Object
readonly
Publisher Name (出版社名).
-
#publisher_id ⇒ Object
readonly
Japanese Publisher identifier (ISBN出版者記号).
Instance Method Summary collapse
-
#initialize(name, publisher_id, distribution_id) ⇒ Publisher
constructor
A new instance of Publisher.
Constructor Details
#initialize(name, publisher_id, distribution_id) ⇒ Publisher
Returns a new instance of Publisher.
21 22 23 24 25 |
# File 'lib/openbd/resources/onix/publisher.rb', line 21 def initialize(name, publisher_id, distribution_id) @name = name @publisher_id = publisher_id @distribution_id = distribution_id end |
Instance Attribute Details
#distribution_id ⇒ Object (readonly)
JP Distribution Identifier (取引コード)
19 20 21 |
# File 'lib/openbd/resources/onix/publisher.rb', line 19 def distribution_id @distribution_id end |
#name ⇒ Object (readonly)
Publisher Name (出版社名)
13 14 15 |
# File 'lib/openbd/resources/onix/publisher.rb', line 13 def name @name end |
#publisher_id ⇒ Object (readonly)
Japanese Publisher identifier (ISBN出版者記号)
16 17 18 |
# File 'lib/openbd/resources/onix/publisher.rb', line 16 def publisher_id @publisher_id end |