lib/ogc/gml/face.rb in ogc-gml-1.0.0 vs lib/ogc/gml/face.rb in ogc-gml-1.0.1

- old
+ new

@@ -1,9 +1,8 @@ # frozen_string_literal: true -# --- face_type.rb --- -require "shale" +require "lutaml/model" require_relative "code" require_relative "code_with_authority" require_relative "directed_edge_property" require_relative "directed_topo_solid_property" @@ -12,15 +11,15 @@ require_relative "reference" require_relative "surface_property" module Ogc module Gml - class Face < Shale::Mapper - attribute :id, Shale::Type::Value - attribute :aggregation_type, Shale::Type::String - attribute :universal, Shale::Type::Boolean, default: -> { "false" } + class Face < Lutaml::Model::Serializable + attribute :id, :string + attribute :aggregation_type, :string + attribute :universal, :boolean, default: -> { false } attribute :meta_data_property, MetaDataProperty, collection: true - attribute :description, Shale::Type::String + attribute :description, :string attribute :description_reference, Reference attribute :identifier, CodeWithAuthority attribute :name, Code, collection: true attribute :isolated, NodeProperty, collection: true attribute :directed_edge, DirectedEdgeProperty, collection: true