Sha256: 91402a0324c5fb515134c773d4079989a446eab053eb1ce55340217243076ab9

Contents?: true

Size: 267 Bytes

Versions: 3

Compression:

Stored size: 267 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nineteen-eighty-two-0.1.3 lib/nineteen/eighty/two/formatters/json_formatter.rb
nineteen-eighty-two-0.1.2 lib/nineteen/eighty/two/formatters/json_formatter.rb
nineteen-eighty-two-0.1.1 lib/nineteen/eighty/two/formatters/json_formatter.rb