Module: Mml::Base::Content::Cbytes

Included in:
V3::Cbytes, V4::Cbytes
Defined in:
lib/mml/base/content/cbytes.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/mml/base/content/cbytes.rb', line 7

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

    xml do
      namespace Mml::Namespace
      element "cbytes"

      map_content to: :value
      map_attribute "encoding", to: :encoding_value
    end
  end
end