class Elibri::ONIX::Release_3_0::ThemaSubject

Kategoria Themy

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/thema_subject.rb, line 21
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/thema_subject.rb, line 27
def inspect_include_fields
  [:code]
end