Class: PlantumlBuilder::Format

Inherits:
Object
  • Object
show all
Defined in:
lib/plantuml_builder/format.rb

Constant Summary collapse

DEFAULT_HOST =
'http://www.plantuml.com/plantuml'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(diagram, host = DEFAULT_HOST) ⇒ Format

Returns a new instance of Format.



5
6
7
8
# File 'lib/plantuml_builder/format.rb', line 5

def initialize(diagram, host=DEFAULT_HOST)
  self.host = host
  self.diagram = diagram
end

Instance Method Details

#loadObject



10
11
12
13
14
15
16
# File 'lib/plantuml_builder/format.rb', line 10

def load
  compress_diagram
  build_url
  fetch_diagram

  data
end