Class: ONIX::Publisher

Inherits:
Entity show all
Defined in:
lib/onix/entity.rb

Instance Attribute Summary

Attributes inherited from Entity

#identifiers, #name, #role

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

identifier_tag, name_tag, #parse

Methods included from GlnMethods

#gln, #gln_identifier

Methods inherited from SubsetDSL

_ancestor_registered_scopes, _ancestors_registered_elements, ancestor_registered_scopes, ancestors_registered_elements, element, elements, get_class, #parse, ref_to_short, registered_elements, registered_scopes, scope, short_to_ref, #unsupported

Methods inherited from Subset

parse, #parse, tag_match, #tag_match, #unsupported

Constructor Details

#initializePublisher

Returns a new instance of Publisher.



113
114
115
116
# File 'lib/onix/entity.rb', line 113

def initialize
  super
  @websites = []
end

Class Method Details

.identifier_classObject



126
127
128
# File 'lib/onix/entity.rb', line 126

def self.identifier_class
  PublisherIdentifier
end

.prefixObject



118
119
120
# File 'lib/onix/entity.rb', line 118

def self.prefix
  "Publisher"
end

.role_classObject



130
131
132
# File 'lib/onix/entity.rb', line 130

def self.role_class
  PublishingRole
end

.role_tagObject



122
123
124
# File 'lib/onix/entity.rb', line 122

def self.role_tag
  "PublishingRole"
end