Sha256: d7fcc82f842d8d366920e5ff2d72aac97e599d7dcb7e8c37cd668cedf4bd2d90
Contents?: true
Size: 744 Bytes
Versions: 46
Compression:
Stored size: 744 Bytes
Contents
module RelatonGb # GB standard type. class GbStandardType # @return [String] attr_reader :scope, :prefix, :mandate, :topic # @param scope [String] # @param prefix [String] # @param mandate [String] # @param topic [String] def initialize(scope:, prefix:, mandate:, topic:) @scope = scope @prefix = prefix @mandate = mandate @topic = topic end def to_xml(builder) builder.gbtype do builder.gbscope scope builder.gbprefix prefix builder.gbmandate mandate builder.gbtopic topic end end # @return [Hash] def to_hash { "scope" => scope, "prefix" => prefix, "mandate" => mandate, "topic" => topic } end end end
Version data entries
46 entries across 46 versions & 2 rubygems