Sha256: a09596444e33a9e190a8c1c281a2c96573a1eaf4a7c0429c8db20de0f6785372

Contents?: true

Size: 310 Bytes

Versions: 3

Compression:

Stored size: 310 Bytes

Contents

module PlantumlBuilder
  class UrlBuilder
    def initialize(server, format, encoded)
      self.server  = server
      self.format  = format
      self.encoded = encoded
    end

    def build
      "#{server}/#{format}/#{encoded}"
    end

    private

    attr_accessor :server, :format, :encoded
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
plantuml_builder-0.2.0 lib/plantuml_builder/url_builder.rb
plantuml_builder-0.1.1 lib/plantuml_builder/url_builder.rb
plantuml_builder-0.1.0 lib/plantuml_builder/url_builder.rb