Module: Dcc::Base::XmlBlob

Included in:
V2::XmlBlob, V3::XmlBlob
Defined in:
lib/dcc/base/xml_blob.rb

Overview

dcc:xmlType — opaque wildcard XML payload (xs:any namespace="##other").

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/dcc/base/xml_blob.rb', line 7

def self.included(klass)
  klass.class_eval do
    attribute :raw, :string

    xml do
      namespace ::Dcc::Namespace::Dcc
      element "xml"
      map_all to: :raw
    end
  end
end