Class: RelatonGb::GbStandardType
- Inherits:
-
Object
- Object
- RelatonGb::GbStandardType
- Defined in:
- lib/relaton_gb/gb_standard_type.rb
Overview
GB standard type.
Instance Attribute Summary collapse
- #mandate ⇒ String readonly
- #prefix ⇒ String readonly
- #scope ⇒ String readonly
Instance Method Summary collapse
-
#initialize(scope:, prefix:, mandate:) ⇒ GbStandardType
constructor
A new instance of GbStandardType.
- #to_xml(builder) ⇒ Object
Constructor Details
#initialize(scope:, prefix:, mandate:) ⇒ GbStandardType
16 17 18 19 20 |
# File 'lib/relaton_gb/gb_standard_type.rb', line 16 def initialize(scope:, prefix:, mandate:) @scope = scope @prefix = prefix @mandate = mandate end |
Instance Attribute Details
#mandate ⇒ String (readonly)
11 12 13 |
# File 'lib/relaton_gb/gb_standard_type.rb', line 11 def mandate @mandate end |
#prefix ⇒ String (readonly)
8 9 10 |
# File 'lib/relaton_gb/gb_standard_type.rb', line 8 def prefix @prefix end |
#scope ⇒ String (readonly)
5 6 7 |
# File 'lib/relaton_gb/gb_standard_type.rb', line 5 def scope @scope end |
Instance Method Details
#to_xml(builder) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/relaton_gb/gb_standard_type.rb', line 22 def to_xml(builder) builder.gbtype do builder.gbscope @scope builder.gbprefix @prefix builder.gbmandate @mandate end end |