Sha256: 5f681a11d8f5a3b876e31eba17231e2332dc86bba687c60e989c3841b0fe0702

Contents?: true

Size: 651 Bytes

Versions: 1

Compression:

Stored size: 651 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module Rfcxml
  module V3
    class Organization < Lutaml::Model::Serializable
      attribute :content, :string
      attribute :abbrev, :string
      attribute :ascii, :string
      attribute :ascii_abbrev, :string
      attribute :show_on_front_page, :string, default: -> { "true" }

      xml do
        root "organization"

        map_content to: :content
        map_attribute "abbrev", to: :abbrev
        map_attribute "ascii", to: :ascii
        map_attribute "asciiAbbrev", to: :ascii_abbrev
        map_attribute "showOnFrontPage", to: :show_on_front_page
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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