Sha256: 5597820a9c1788483d59e5edde08a4d337928dce87c6689e8539ee8514d76a14

Contents?: true

Size: 770 Bytes

Versions: 48

Compression:

Stored size: 770 Bytes

Contents

module Inferno
  module Entities
    # A `Message` represents a message generated during a test.
    #
    # @!attribute id
    #   @return [String] id of the message
    # @!attribute index
    #   @return [String] index of the message. Used for ordering.
    # @!attribute result_id
    #   @return [String]
    # @!attribute result
    #   @return [Inferno::Entities::Result]
    # @!attribute type
    #   @return [String]
    # @!attribute message
    #   @return [String]
    class Message < Entity
      ATTRIBUTES = [:id, :index, :message, :result_id, :result, :type].freeze
      TYPES = ['error', 'warning', 'info'].freeze

      include Inferno::Entities::Attributes

      def initialize(params)
        super(params, ATTRIBUTES)
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
inferno_core-0.6.1 lib/inferno/entities/message.rb
inferno_core-0.6.0 lib/inferno/entities/message.rb
inferno_core-0.5.4 lib/inferno/entities/message.rb
inferno_core-0.5.3 lib/inferno/entities/message.rb
inferno_core-0.5.2 lib/inferno/entities/message.rb
inferno_core-0.5.1 lib/inferno/entities/message.rb
inferno_core-0.5.0 lib/inferno/entities/message.rb
inferno_core-0.4.44 lib/inferno/entities/message.rb
inferno_core-0.4.43 lib/inferno/entities/message.rb
inferno_core-0.4.42 lib/inferno/entities/message.rb
inferno_core-0.4.41 lib/inferno/entities/message.rb
inferno_core-0.4.40 lib/inferno/entities/message.rb
inferno_core-0.4.39 lib/inferno/entities/message.rb
inferno_core-0.4.38 lib/inferno/entities/message.rb
inferno_core-0.4.35 lib/inferno/entities/message.rb
inferno_core-0.4.34 lib/inferno/entities/message.rb
inferno_core-0.4.33 lib/inferno/entities/message.rb
inferno_core-0.4.32 lib/inferno/entities/message.rb
inferno_core-0.4.31 lib/inferno/entities/message.rb
inferno_core-0.4.30 lib/inferno/entities/message.rb