Sha256: 193fd8357eb0c3e329c06946e9f51e729a0e5e85ff7e05afa601bfede0f7dfa2

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module Rfcxml
  module V3
    class Link < Lutaml::Model::Serializable
      attribute :href, :string
      attribute :rel, :string

      xml do
        root "link"

        map_attribute "href", to: :href
        map_attribute "rel", to: :rel
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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