lib/relaton_gb/gb_technical_committee.rb
module RelatonGb
# GB technical committee.
class GbTechnicalCommittee
# @return [String]
attr_reader :type
# @return [String]
attr_reader :name
# @param type [String]
# @param name [String]
def initialize(type:, name:)
@type = type
@name = name
end
def to_xml(builder)
builder.gbcommittee(type: @type) do
builder.text @name
end
end
# @return [Hash]
def to_hash
{ "type" => type, "name" => name }
end
end
end