lib/ogc/gml/dynamic_feature_member.rb in ogc-gml-1.0.0 vs lib/ogc/gml/dynamic_feature_member.rb in ogc-gml-1.0.1
- old
+ new
@@ -1,17 +1,16 @@
# frozen_string_literal: true
-# --- dynamic_feature_member_type.rb ---
-require "shale"
+require "lutaml/model"
require_relative "dynamic_feature"
module Ogc
module Gml
- class DynamicFeatureMember < Shale::Mapper
- attribute :owns, Shale::Type::Boolean, default: -> { "false" }
- attribute :nil_reason, Shale::Type::Value
- attribute :remote_schema, Shale::Type::Value
+ class DynamicFeatureMember < Lutaml::Model::Serializable
+ attribute :owns, :boolean, default: -> { false }
+ attribute :nil_reason, :string
+ attribute :remote_schema, :string
attribute :dynamic_feature, DynamicFeature, collection: true
xml do
root "dynamicMembers"
namespace "http://www.opengis.net/gml/3.2", "gml"