Class: RelatonIec::TcScOfficersNote
- Inherits:
-
Object
- Object
- RelatonIec::TcScOfficersNote
- Defined in:
- lib/relaton_iec/tc_sc_officers_note.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(basic_blocks) ⇒ TcScOfficersNote
constructor
A new instance of TcScOfficersNote.
-
#to_xml(builder) ⇒ Object
XML serialization.
Constructor Details
#initialize(basic_blocks) ⇒ TcScOfficersNote
Returns a new instance of TcScOfficersNote.
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_blocks ⇒ Array<RelatonIec::BasicBlock> (readonly)
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
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 |