Sha256: 639d607eeb601c201df2e918a170298deaa5d2bc09e7909957188e6e9b2f598f

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

module Ddr
  module Extraction 
    module Adapters
      class FitsAdapter

        # Return metadata extracted from file
        #
        # @param file [String] the file from which to extract metadata.
        # @return [IO] the output
        def extract_metadata(file)
          IO.popen([self.class.path, "-i", file])
        end

        class << self
          # Path to FITS executable (fits.sh or fits.bat)
          attr_accessor :path
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ddr-extraction-0.2.1 lib/ddr/extraction/adapters/fits_adapter.rb