Module: Pennyworth::Models

Defined in:
lib/pennyworth/models/text.rb,
lib/pennyworth/models/encoding.rb,
lib/pennyworth/models/http_status.rb,
lib/pennyworth/models/system/error.rb,
lib/pennyworth/models/system/signal.rb,
lib/pennyworth/models/standard_error.rb

Defined Under Namespace

Modules: System

Constant Summary collapse

Text =

Defines basic text.

Data.define :id, :content
Encoding =

Defines an encoding.

Data.define :name, :aliases
HTTPStatus =

Defines HTTP status details.

Data.define :code, :label, :url do
  def initialize code: nil, label: nil, url: nil
    super
  end
end
StandardError =

Defines a standard error.

Data.define :name, :file_path, :line_number do
  def initialize name: nil, file_path: nil, line_number: nil
    super
  end
end