Class: Obp::Access::Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/obp/access/converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(urn:, metas:, source:) ⇒ Converter

Returns a new instance of Converter.



6
7
8
9
10
# File 'lib/obp/access/converter.rb', line 6

def initialize(urn:, metas:, source:)
  @urn = urn
  @metas = metas
  @source = source
end

Instance Attribute Details

#metasObject (readonly)

Returns the value of attribute metas.



4
5
6
# File 'lib/obp/access/converter.rb', line 4

def metas
  @metas
end

#sourceObject (readonly)

Returns the value of attribute source.



4
5
6
# File 'lib/obp/access/converter.rb', line 4

def source
  @source
end

#urnObject (readonly)

Returns the value of attribute urn.



4
5
6
# File 'lib/obp/access/converter.rb', line 4

def urn
  @urn
end

Instance Method Details

#to_xmlObject



12
13
14
# File 'lib/obp/access/converter.rb', line 12

def to_xml
  Renderer.new(urn:, metas:, nodes:).to_xml
end