class Elibri::ONIX::Release_3_0::Publisher

Constants

ATTRIBUTES
RELATIONS

Attributes

eid[RW]

role występuje w tej chwili tylko 01 - główny wydawca

name[RW]

role występuje w tej chwili tylko 01 - główny wydawca

role[RW]

role występuje w tej chwili tylko 01 - główny wydawca

to_xml[RW]

role występuje w tej chwili tylko 01 - główny wydawca

Public Class Methods

new(data) click to toggle source
# File lib/elibri_onix/onix_3_0/publisher.rb, line 28
def initialize(data)
  @to_xml = data.to_s
  @role = data.at_css('PublishingRole').try(:text)
  @name = data.at_css('PublisherName').try(:text)
  if data.at_css('PublisherIdentifier')
    @eid = data.at_css('PublisherIdentifier').at_css('IDValue').try(:text).try(:to_i)
  end
end

Public Instance Methods

inspect_include_fields() click to toggle source
# File lib/elibri_onix/onix_3_0/publisher.rb, line 37
def inspect_include_fields
  [:eid, :name]
end