Sha256: 56d55429c24d575459c57b7b8a66f2c237d6f87f70442e7562d1e7cda5be4f4f

Contents?: true

Size: 927 Bytes

Versions: 54

Compression:

Stored size: 927 Bytes

Contents

module Inferno
  module Entities
    # `SessionData` represents a piece of saved state for a `TestSession`.
    # These are used to store test inputs and outputs.
    #
    # @!attribute id
    #   @return [String] id of the test input
    # @!attribute name
    #   @return [String]
    # @!attribute value
    #   @return [String]
    # @!attribute test_session_id
    #   @return [String]
    # @!attribute created_at
    #   @return [Time]
    # @!attribute updated_at
    #   @return [Time]
    class SessionData < Entity
      ATTRIBUTES = [:id, :name, :value, :test_session_id, :created_at, :updated_at].freeze

      include Inferno::Entities::Attributes

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

      def to_hash
        {
          id:,
          name:,
          value:,
          test_session_id:,
          created_at:,
          updated_at:
        }
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
inferno_core-0.4.9 lib/inferno/entities/session_data.rb
inferno_core-0.4.8 lib/inferno/entities/session_data.rb
inferno_core-0.4.7 lib/inferno/entities/session_data.rb
inferno_core-0.4.7.pre lib/inferno/entities/session_data.rb
inferno_core-0.4.6 lib/inferno/entities/session_data.rb
inferno_core-0.4.5 lib/inferno/entities/session_data.rb
inferno_core-0.4.4 lib/inferno/entities/session_data.rb
inferno_core-0.4.3 lib/inferno/entities/session_data.rb
inferno_core-0.4.2 lib/inferno/entities/session_data.rb
inferno_core-0.4.2.pre lib/inferno/entities/session_data.rb
inferno_core-0.4.1 lib/inferno/entities/session_data.rb
inferno_core-0.4.1.pre2 lib/inferno/entities/session_data.rb
inferno_core-0.4.1.pre lib/inferno/entities/session_data.rb
inferno_core-0.4.0 lib/inferno/entities/session_data.rb