Class: RelatonGb::GbStandardType

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

Overview

GB standard type.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mandateString (readonly)



11
12
13
# File 'lib/relaton_gb/gb_standard_type.rb', line 11

def mandate
  @mandate
end

#prefixString (readonly)



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

def prefix
  @prefix
end

#scopeString (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