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.29 lib/inferno/entities/session_data.rb
inferno_core-0.4.28 lib/inferno/entities/session_data.rb
inferno_core-0.4.27 lib/inferno/entities/session_data.rb
inferno_core-0.4.26 lib/inferno/entities/session_data.rb
inferno_core-0.4.25 lib/inferno/entities/session_data.rb
inferno_core-0.4.24 lib/inferno/entities/session_data.rb
inferno_core-0.4.23 lib/inferno/entities/session_data.rb
inferno_core-0.4.22 lib/inferno/entities/session_data.rb
inferno_core-0.4.21 lib/inferno/entities/session_data.rb
inferno_core-0.4.20 lib/inferno/entities/session_data.rb
inferno_core-0.4.19 lib/inferno/entities/session_data.rb
inferno_core-0.4.18 lib/inferno/entities/session_data.rb
inferno_core-0.4.17 lib/inferno/entities/session_data.rb
inferno_core-0.4.16 lib/inferno/entities/session_data.rb
inferno_core-0.4.15 lib/inferno/entities/session_data.rb
inferno_core-0.4.14 lib/inferno/entities/session_data.rb
inferno_core-0.4.13 lib/inferno/entities/session_data.rb
inferno_core-0.4.12 lib/inferno/entities/session_data.rb
inferno_core-0.4.11 lib/inferno/entities/session_data.rb
inferno_core-0.4.10 lib/inferno/entities/session_data.rb