Class: RelatonIec::TcScOfficersNote

Inherits:
Object
  • Object
show all
Defined in:
lib/relaton_iec/tc_sc_officers_note.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(basic_blocks) ⇒ TcScOfficersNote

Returns a new instance of TcScOfficersNote.

Parameters:



9
10
11
# File 'lib/relaton_iec/tc_sc_officers_note.rb', line 9

def initialize(basic_blocks)
  @basic_blocks = basic_blocks
end

Instance Attribute Details

#basic_blocksArray<RelatonIec::BasicBlock> (readonly)

Returns:

  • (Array<RelatonIec::BasicBlock>)


4
5
6
# File 'lib/relaton_iec/tc_sc_officers_note.rb', line 4

def basic_blocks
  @basic_blocks
end

Instance Method Details

#to_xml(builder) ⇒ Object

XML serialization

Parameters:

  • builder (Nokogiri::XML::Builder)


18
19
20
21
22
# File 'lib/relaton_iec/tc_sc_officers_note.rb', line 18

def to_xml(builder)
  builder.send "tc-sc-officers-note" do |b|
    basic_blocks.each { |bb| bb.to_xml b }
  end
end