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-1.20.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.19.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.18.4 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.18.3 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.18.2 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.18.1 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.18.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.17.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.16.3 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.16.2 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.16.1 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.16.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.14.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.13.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.12.1 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.12.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.11.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.10.1 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.10.0 lib/relaton_gb/gb_technical_committee.rb
relaton-gb-1.9.0 lib/relaton_gb/gb_technical_committee.rb