Class: RelatonBib::TechnicalCommittee

Inherits:
Object
  • Object
show all
Defined in:
lib/relaton_bib/technical_committee.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workgroup) ⇒ TechnicalCommittee

Returns a new instance of TechnicalCommittee.

Parameters:



9
10
11
# File 'lib/relaton_bib/technical_committee.rb', line 9

def initialize(workgroup)
  @workgroup = workgroup
end

Instance Attribute Details

#workgroupRelatonBib::WorkGroup (readonly)



6
7
8
# File 'lib/relaton_bib/technical_committee.rb', line 6

def workgroup
  @workgroup
end

Instance Method Details

#to_hashHash

Returns:

  • (Hash)


21
22
23
# File 'lib/relaton_bib/technical_committee.rb', line 21

def to_hash
  workgroup.to_hash
end

#to_xml(builder) ⇒ Object

Parameters:

  • builder (Nokogiri::XML::Builder)


14
15
16
17
18
# File 'lib/relaton_bib/technical_committee.rb', line 14

def to_xml(builder)
  builder.send "technical-committee" do |b|
    workgroup.to_xml b
  end
end