Sha256: 84f55e2dfd1b3bb548cd457ce2cfae14faa8717fec01e130d9080911db19740e

Contents?: true

Size: 867 Bytes

Versions: 3

Compression:

Stored size: 867 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "association_role"
require_relative "code"

module Ogc
  module Gml
    class File < Lutaml::Model::Serializable
      attribute :range_parameters, AssociationRole
      attribute :file_name, :string
      attribute :file_reference, :string
      attribute :file_structure, Code
      attribute :mime_type, :string
      attribute :compression, :string

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

        map_element "rangeParameters", to: :range_parameters
        map_element "fileName", to: :file_name
        map_element "fileReference", to: :file_reference
        map_element "fileStructure", to: :file_structure
        map_element "mimeType", to: :mime_type
        map_element "compression", to: :compression
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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