Module: Dcc::Base::Text
- Included in:
- V2::RichContent, V2::Text, V3::Text
- Defined in:
- lib/dcc/base/text.rb
Overview
dcc:textType — multilingual text container. Holds interleaved
dcc:content (localized text), dcc:file (byteData), and
dcc:formula elements per the v3.3.0 XSD content model.
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/dcc/base/text.rb', line 9 def self.included(klass) klass.class_eval do attribute :id, :string attribute :ref_id, :string attribute :ref_type, :string attribute :content, :content, collection: true attribute :file, :byteData, collection: true attribute :formula, :formula, collection: true xml do namespace ::Dcc::Namespace::Dcc element "text" ordered map_attribute "id", to: :id map_attribute "refId", to: :ref_id map_attribute "refType", to: :ref_type map_element "content", to: :content map_element "file", to: :file map_element "formula", to: :formula end end end |