Sha256: 3d0a7b0d6c73b5ecc1bc16903e11356e2c0e673462c902921a03358009e02953

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

require 'json'

module OGR
  module FieldDefinitionExtensions
    # @return [Hash]
    def as_json(_options = nil)
      {
        is_ignored: ignored?,
        justification: justification,
        name: name,
        precision: precision,
        type: type,
        width: width
      }
    end

    # @return [String]
    def to_json(options = nil)
      as_json(options).to_json
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta6 lib/ogr/field_definition_extensions.rb
ffi-gdal-1.0.0.beta5 lib/ogr/field_definition_extensions.rb
ffi-gdal-1.0.0.beta4 lib/ogr/field_definition_extensions.rb