class RelatonGb::GbStandardType
GB standard type.
Attributes
mandate[R]
@return [String]
prefix[R]
@return [String]
scope[R]
@return [String]
topic[R]
@return [String]
Public Class Methods
new(scope:, prefix:, mandate:, topic:)
click to toggle source
@param scope [String] @param prefix [String] @param mandate [String] @param topic [String]
# File lib/relaton_gb/gb_standard_type.rb, line 11 def initialize(scope:, prefix:, mandate:, topic:) @scope = scope @prefix = prefix @mandate = mandate @topic = topic end
Public Instance Methods
to_hash()
click to toggle source
@return [Hash]
# File lib/relaton_gb/gb_standard_type.rb, line 28 def to_hash { "scope" => scope, "prefix" => prefix, "mandate" => mandate, "topic" => topic } end
to_xml(builder)
click to toggle source
# File lib/relaton_gb/gb_standard_type.rb, line 18 def to_xml(builder) builder.gbtype do builder.gbscope scope builder.gbprefix prefix builder.gbmandate mandate builder.gbtopic topic end end