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.6.1 lib/inferno/entities/session_data.rb
inferno_core-0.6.0 lib/inferno/entities/session_data.rb
inferno_core-0.5.4 lib/inferno/entities/session_data.rb
inferno_core-0.5.3 lib/inferno/entities/session_data.rb
inferno_core-0.5.2 lib/inferno/entities/session_data.rb
inferno_core-0.5.1 lib/inferno/entities/session_data.rb
inferno_core-0.5.0 lib/inferno/entities/session_data.rb
inferno_core-0.4.44 lib/inferno/entities/session_data.rb
inferno_core-0.4.43 lib/inferno/entities/session_data.rb
inferno_core-0.4.42 lib/inferno/entities/session_data.rb
inferno_core-0.4.41 lib/inferno/entities/session_data.rb
inferno_core-0.4.40 lib/inferno/entities/session_data.rb
inferno_core-0.4.39 lib/inferno/entities/session_data.rb
inferno_core-0.4.38 lib/inferno/entities/session_data.rb
inferno_core-0.4.35 lib/inferno/entities/session_data.rb
inferno_core-0.4.34 lib/inferno/entities/session_data.rb
inferno_core-0.4.33 lib/inferno/entities/session_data.rb
inferno_core-0.4.32 lib/inferno/entities/session_data.rb
inferno_core-0.4.31 lib/inferno/entities/session_data.rb
inferno_core-0.4.30 lib/inferno/entities/session_data.rb