Sha256: 836d093b3372eae28f4627e4410c96cd0707875d80db6dca22b8654ade1468f6

Contents?: true

Size: 218 Bytes

Versions: 2

Compression:

Stored size: 218 Bytes

Contents

require 'net/http'

module PlantumlBuilder
  class DiagramFetcher
    def initialize(url)
      self.uri = URI(url)
    end

    def fetch
      Net::HTTP.get(uri)
    end

    private

    attr_accessor :uri
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plantuml_builder-0.3.0 lib/plantuml_builder/diagram_fetcher.rb
plantuml_builder-0.2.0 lib/plantuml_builder/diagram_fetcher.rb