Sha256: 4f0b193cde5cdcf29e6b51b200fee3bb01efc86c76568c87b6cb474e2d1fa605

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module Ogc
  module Gml
    class Knot < Lutaml::Model::Serializable
      attribute :value, :float
      attribute :multiplicity, :integer
      attribute :weight, :float

      xml do
        root "KnotType"
        namespace "http://www.opengis.net/gml/3.2", "gml"

        map_element "value", to: :value
        map_element "multiplicity", to: :multiplicity
        map_element "weight", to: :weight
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ogc-gml-1.0.3 lib/ogc/gml/knot.rb
ogc-gml-1.0.2 lib/ogc/gml/knot.rb
ogc-gml-1.0.1 lib/ogc/gml/knot.rb