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

- old
+ new

@@ -1,16 +1,15 @@ # frozen_string_literal: true -# --- time_position_type.rb --- -require "shale" +require "lutaml/model" module Ogc module Gml - class TimePosition < Shale::Mapper - attribute :content, Shale::Type::Value - attribute :frame, Shale::Type::Value, default: -> { "#ISO-8601" } - attribute :calendar_era_name, Shale::Type::String - attribute :indeterminate_position, Shale::Type::String + class TimePosition < Lutaml::Model::Serializable + attribute :content, :string + attribute :frame, :string, default: -> { "#ISO-8601" } + attribute :calendar_era_name, :string + attribute :indeterminate_position, :string xml do root "timePosition" namespace "http://www.opengis.net/gml/3.2", "gml"