Class: PlantumlBuilder::Format
- Inherits:
-
Object
- Object
- PlantumlBuilder::Format
- Defined in:
- lib/plantuml_builder/format.rb
Direct Known Subclasses
PlantumlBuilder::Formats::PNG, PlantumlBuilder::Formats::SVG, PlantumlBuilder::Formats::TXT
Constant Summary collapse
- DEFAULT_HOST =
'http://www.plantuml.com/plantuml'.freeze
Instance Method Summary collapse
-
#initialize(diagram, host = DEFAULT_HOST) ⇒ Format
constructor
A new instance of Format.
- #load ⇒ Object
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
#load ⇒ Object
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 |