Sha256: da8ead589d7bf2940dc852216b199ba7f71027f5ef1abcf6230dda01750d615d

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "artwork"

module Rfcxml
  module V3
    class Artset < Lutaml::Model::Serializable
      attribute :anchor, :string
      attribute :pn, :string
      attribute :artwork, Artwork, collection: true

      xml do
        root "artset"

        map_attribute "anchor", to: :anchor
        map_attribute "pn", to: :pn
        map_element "artwork", to: :artwork
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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