class Elibri::ONIX::Release_3_0::PublisherSubject

Constants

ATTRIBUTES
RELATIONS

Attributes

code[RW]
heading_text[RW]
to_xml[RW]

Public Class Methods

new(data) click to toggle source
# File lib/elibri_onix/onix_3_0/publisher_subject.rb, line 20
def initialize(data)
  @to_xml = data.to_s
  @code = data.at_css('SubjectCode').try(:text)
  @heading_text = data.at_css('SubjectHeadingText').try(:text)
end

Public Instance Methods

inspect_include_fields() click to toggle source
# File lib/elibri_onix/onix_3_0/publisher_subject.rb, line 26
def inspect_include_fields
  [:code]
end