Sha256: 02de355eda28ee181f19041a8be294cc99ecc9eac3da6c71f3ba2e570bcf1a89

Contents?: true

Size: 274 Bytes

Versions: 7

Compression:

Stored size: 274 Bytes

Contents

# frozen_string_literal: true

module Pennyworth
  # :reek:ModuleInitialize
  module Models
    # Defines HTTP status details.
    HTTPStatus = Data.define :code, :label, :url do
      def initialize code: nil, label: nil, url: nil
        super
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pennyworth-14.3.0 lib/pennyworth/models/http_status.rb
pennyworth-14.2.1 lib/pennyworth/models/http_status.rb
pennyworth-14.2.0 lib/pennyworth/models/http_status.rb
pennyworth-14.1.2 lib/pennyworth/models/http_status.rb
pennyworth-14.1.1 lib/pennyworth/models/http_status.rb
pennyworth-14.1.0 lib/pennyworth/models/http_status.rb
pennyworth-14.0.0 lib/pennyworth/models/http_status.rb