Sha256: 72f61e363390e170bcd614a4e39a64caee00aea8d4ebf0f5197ff0c65060de14

Contents?: true

Size: 235 Bytes

Versions: 1

Compression:

Stored size: 235 Bytes

Contents

require 'json'

module Hckr
  class JsonBuilder
    def initialize type
      @type = type
    end

    def build!
      links = Hckr::Scraper.new(@type).scrape!
      links.map { |o| Hash[o.each_pair.to_a] }.to_json
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hckr-0.0.1 lib/hckr/json_builder.rb