Sha256: a4b20fae7db364d903148f37b9c0a3e83e396eb83d3299231183ed55f89a049b

Contents?: true

Size: 586 Bytes

Versions: 4

Compression:

Stored size: 586 Bytes

Contents

module Useless
  module Doc

    # Documentation for an HTTP header, belonging either to the request or the
    # response.
    #
    # @!attribute [r] key
    #   @return [String] the key of the header.
    #
    # @!attribute [r] description
    #   @return [String] a description of the header.
    #
    class Header
      attr_accessor :key, :description

      # @param [Hash] attrs corresponds to the class's instance attributes.
      #
      def initialize(attrs = {})
        @key          = attrs[:key]
        @description  = attrs[:description]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
useless-doc-0.1.3 lib/useless/doc/header.rb
useless-doc-0.1.2 lib/useless/doc/header.rb
useless-doc-0.1.1 lib/useless/doc/header.rb
useless-doc-0.1.0 lib/useless/doc/header.rb