Sha256: 43c87c36beaf68894e74bb3d01a8984cba659509877facec8e2cdc12099d12a1

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module Rfcxml
  module V3
    class Date < Lutaml::Model::Serializable
      attribute :content, :string
      attribute :day, :string
      attribute :month, :string
      attribute :year, :string

      xml do
        root "date"

        map_content to: :content
        map_attribute "day", to: :day
        map_attribute "month", to: :month
        map_attribute "year", to: :year
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rfcxml-0.2.0 lib/rfcxml/v3/date.rb