Class: EBPS::Conversion::Oebps::Factory

Inherits:
Object
  • Object
show all
Defined in:
lib/ebps/conversion/oebps.rb

Direct Known Subclasses

HtmlFactory, IndexFactory, XmlFactory

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subject, ids, tmpdir) ⇒ Factory

Returns a new instance of Factory.



44
45
46
47
48
49
50
51
52
# File 'lib/ebps/conversion/oebps.rb', line 44

def initialize subject, ids, tmpdir
  @ids = ids
  @indent = EBPS.config.xml_indent
  @builder = Builder::XmlMarkup.new :indent => @indent
  @builder.instruct! :xml, :version => "1.0", :encoding => "UTF-8"
  @subject = subject
  @tmpdir = tmpdir
  @link_drug_brand_name = EBPS.config.link_drug_brand_name
end

Instance Attribute Details

#uidObject (readonly)

Returns the value of attribute uid.



43
44
45
# File 'lib/ebps/conversion/oebps.rb', line 43

def uid
  @uid
end