Sha256: aa5eee0cf5f1114f998f3d00e3b3e7b93ca70dfc85b8751d477b8bff75e0a0ed

Contents?: true

Size: 900 Bytes

Versions: 39

Compression:

Stored size: 900 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]
    # @!attribute created_at
    #   @return [Time]
    # @!attribute updated_at
    #   @return [Time]
    class Message < Entity
      ATTRIBUTES = [:id, :index, :message, :result_id, :result, :type, :created_at, :updated_at].freeze
      TYPES = ['error', 'warning', 'info'].freeze

      include Inferno::Entities::Attributes

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
inferno_core-0.4.2 lib/inferno/entities/message.rb
inferno_core-0.4.2.pre lib/inferno/entities/message.rb
inferno_core-0.4.1 lib/inferno/entities/message.rb
inferno_core-0.4.1.pre2 lib/inferno/entities/message.rb
inferno_core-0.4.1.pre lib/inferno/entities/message.rb
inferno_core-0.4.0 lib/inferno/entities/message.rb
inferno_core-0.3.12 lib/inferno/entities/message.rb
inferno_core-0.3.11 lib/inferno/entities/message.rb
inferno_core-0.3.10 lib/inferno/entities/message.rb
inferno_core-0.3.9 lib/inferno/entities/message.rb
inferno_core-0.3.8 lib/inferno/entities/message.rb
inferno_core-0.3.7 lib/inferno/entities/message.rb
inferno_core-0.3.6 lib/inferno/entities/message.rb
inferno_core-0.3.5 lib/inferno/entities/message.rb
inferno_core-0.3.4 lib/inferno/entities/message.rb
inferno_core-0.3.3 lib/inferno/entities/message.rb
inferno_core-0.3.2 lib/inferno/entities/message.rb
inferno_core-0.3.1 lib/inferno/entities/message.rb
inferno_core-0.3.0 lib/inferno/entities/message.rb
inferno_core-0.3.0.rc1 lib/inferno/entities/message.rb