Sha256: accdf1e6858db340ac97ba2a6d32c6d38e8b1ba722fd9d22720c3e458cba11a1
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 Bytes
Contents
module Inferno module Entities # A `Message` represents a message generated during a test. # # @attr_accessor [String] id of the message # @attr_accessor [String] index of the message. Used for ordering. # @attr_accessor [String] result_id # @attr_accessor [Inferno::Entities::Result] result # @attr_accessor [String] type # @attr_accessor [String] message # @attr_accessor [Time] created_at # @attr_accessor [Time] updated_at 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
inferno_core-0.0.6 | lib/inferno/entities/message.rb |
inferno_core-0.0.5 | lib/inferno/entities/message.rb |
inferno_core-0.0.4 | lib/inferno/entities/message.rb |