Sha256: ce02d8abe37c86fbd6f020114e22a4dbdb1e091d77918f5e5e474f40cb261d7a

Contents?: true

Size: 508 Bytes

Versions: 53

Compression:

Stored size: 508 Bytes

Contents

module RelatonGb
  # GB technical committee.
  class GbTechnicalCommittee
    # @return [String]
    attr_reader :type

    # @return [String]
    attr_reader :name

    # @param type [String]
    # @param name [String]
    def initialize(type:, name:)
      @type = type
      @name = name
    end

    def to_xml(builder)
      builder.gbcommittee(type: @type) do
        builder.text @name
      end
    end

    # @return [Hash]
    def to_hash
      { "type" => type, "name" => name }
    end
  end
end

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
relaton-gb-0.11.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.10.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.9.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.8.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.7.1 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.7.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.6.8 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.6.7 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.6.6 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.6.5 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.6.4 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.6.3 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-0.6.2 lib/relaton_gb/gb_technical_committee.rb