Class: RelatonGb::GbTechnicalCommittee

Inherits:
Object
  • Object
show all
Defined in:
lib/relaton_gb/gb_technical_committee.rb

Overview

GB technical committee.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, name:) ⇒ GbTechnicalCommittee

Returns a new instance of GbTechnicalCommittee.

Parameters:

  • type (String)
  • name (String)


12
13
14
15
# File 'lib/relaton_gb/gb_technical_committee.rb', line 12

def initialize(type:, name:)
  @type = type
  @name = name
end

Instance Attribute Details

#nameString (readonly)

Returns:

  • (String)


8
9
10
# File 'lib/relaton_gb/gb_technical_committee.rb', line 8

def name
  @name
end

#typeString (readonly)

Returns:

  • (String)


5
6
7
# File 'lib/relaton_gb/gb_technical_committee.rb', line 5

def type
  @type
end

Instance Method Details

#to_hashHash

Returns:

  • (Hash)


24
25
26
# File 'lib/relaton_gb/gb_technical_committee.rb', line 24

def to_hash
  { "type" => type, "name" => name }
end

#to_xml(builder) ⇒ Object



17
18
19
20
21
# File 'lib/relaton_gb/gb_technical_committee.rb', line 17

def to_xml(builder)
  builder.gbcommittee(type: @type) do
    builder.text @name
  end
end