Class: RelatonGb::GbTechnicalCommittee
- Inherits:
-
Object
- Object
- RelatonGb::GbTechnicalCommittee
- Defined in:
- lib/relaton_gb/gb_technical_committee.rb
Overview
GB technical committee.
Instance Attribute Summary collapse
- #name ⇒ String readonly
- #type ⇒ String readonly
Instance Method Summary collapse
-
#initialize(type:, name:) ⇒ GbTechnicalCommittee
constructor
A new instance of GbTechnicalCommittee.
- #to_hash ⇒ Hash
- #to_xml(builder) ⇒ Object
Constructor Details
#initialize(type:, name:) ⇒ GbTechnicalCommittee
Returns a new instance of GbTechnicalCommittee.
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
#name ⇒ String (readonly)
8 9 10 |
# File 'lib/relaton_gb/gb_technical_committee.rb', line 8 def name @name end |
#type ⇒ String (readonly)
5 6 7 |
# File 'lib/relaton_gb/gb_technical_committee.rb', line 5 def type @type end |
Instance Method Details
#to_hash ⇒ 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 |