Sha256: 57bd0c7699bd20844934326e6363057620a7fe65a862ed0cb1f2759a6022d52d

Contents?: true

Size: 433 Bytes

Versions: 8

Compression:

Stored size: 433 Bytes

Contents

# frozen_string_literal: true

require 'json'

module Genderize
  module Io
    module Parser
      class Json

        attr_reader :hash

        def initialize(data)
          @data = data
          @hash = {}
        end

        def self.parse(data)
          klass = new(data)
          klass.parse
          klass.hash
        end

        def parse
          @hash = JSON.parse(@data)
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
genderize-io-1.3.0 lib/genderize/io/parser/json.rb
genderize-io-1.2.2 lib/genderize/io/parser/json.rb
genderize-io-1.2.1 lib/genderize/io/parser/json.rb
genderize-io-1.2.0 lib/genderize/io/parser/json.rb
genderize-io-1.1.0 lib/genderize/io/parser/json.rb
genderize-io-1.0.1 lib/genderize/io/parser/json.rb
genderize-io-1.0.0 lib/genderize/io/parser/json.rb
genderize-io-0.1.0 lib/genderize/io/parser/json.rb