Sha256: 938159342505f1b9ea1bcc668b5a163a1932b22efdb1018e4db36063bd685e8e

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

require 'json'

module OGR
  module FieldExtensions

    # @return [Hash]
    def as_json
      {
        is_ignored: ignored?,
        justification: justification,
        name: name,
        precision: precision,
        type: type,
        width: width
      }
    end

    # @return [String]
    def to_json
      as_json.to_json
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta3 lib/ogr/field_extensions.rb
ffi-gdal-1.0.0.beta1 lib/ogr/field_extensions.rb