Sha256: 859d4f28e273cc0f38686bce7acfd0719babbcb3fbcf1dc89f0b0b72170f3d6e

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

module Nineteen
  module Eighty
    module Two
      module Formatters
        class JSONFormatter
          def self.format text
            {
              id: text,
              data: Spectrum[text]
            }.to_json
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nineteen-eighty-two-0.1.0 lib/nineteen/eighty/two/formatters/json_formatter.rb