Sha256: 224d4a8c2d405cfd1d5891e8712ffa3839d825960be84fc039e7ff29939fb985
Contents?: true
Size: 912 Bytes
Versions: 1
Compression:
Stored size: 912 Bytes
Contents
# coding: utf-8 module ONIX2 class OtherText include Virtus.model attribute :text_type_code, Integer attribute :text_format attribute :text attribute :text_link_type,Integer attribute :text_link attribute :text_author def to_xml OtherTextRepresenter.new(self).to_xml end def self.from_xml(data) OtherTextRepresenter.new(self.new).from_xml(data) end end class OtherTextRepresenter < Representable::Decorator include Representable::XML self.representation_wrap = :OtherText property :text_type_code, as: "TextTypeCode", render_filter: ::ONIX2::Formatters::TWO_DIGITS property :text_format, as: "TextFormat" property :text, as: "Text" property :text_link_type, as: "TextLinkType", render_filter: ::ONIX2::Formatters::TWO_DIGITS property :text_link, as: "TextLink" property :text_author, as: "TextAuthor" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onix2-1.0.0 | lib/onix2/other_text.rb |