Sha256: a85b8a616aacd1a6b7a0a090fa2ad3cd1b765caf6545d772521628249d36bec4

Contents?: true

Size: 1.43 KB

Versions: 3

Compression:

Stored size: 1.43 KB

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "code"
require_relative "code_with_authority"
require_relative "meta_data_property"
require_relative "reference"
require_relative "string_or_ref"
require_relative "time_calendar_property"
require_relative "abstract_topology"

module Ogc
  module Gml
    class TimeClock < AbstractTopology
      attribute :remarks, :string
      attribute :domain_of_validity, :string
      attribute :reference_event, StringOrRef
      attribute :reference_time, :string
      attribute :utc_reference, :string
      attribute :date_basis, TimeCalendarProperty, collection: true

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

        map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
        map_element "metaDataProperty", to: :meta_data_property
        map_element "description", to: :description
        map_element "descriptionReference", to: :description_reference
        map_element "identifier", to: :identifier
        map_element "name", to: :name
        map_element "remarks", to: :remarks
        map_element "domainOfValidity", to: :domain_of_validity
        map_element "referenceEvent", to: :reference_event
        map_element "referenceTime", to: :reference_time
        map_element "utcReference", to: :utc_reference
        map_element "dateBasis", to: :date_basis
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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