Sha256: 1cbc4e59aa2dd4e0e0f66cceaaff0a8641d26313db7ceed7b91a033c5dcb806e

Contents?: true

Size: 979 Bytes

Versions: 33

Compression:

Stored size: 979 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: id,
          name: name,
          value: value,
          test_session_id: test_session_id,
          created_at: created_at,
          updated_at: updated_at
        }
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
inferno_core-0.3.12 lib/inferno/entities/session_data.rb
inferno_core-0.3.11 lib/inferno/entities/session_data.rb
inferno_core-0.3.10 lib/inferno/entities/session_data.rb
inferno_core-0.3.9 lib/inferno/entities/session_data.rb
inferno_core-0.3.8 lib/inferno/entities/session_data.rb
inferno_core-0.3.7 lib/inferno/entities/session_data.rb
inferno_core-0.3.6 lib/inferno/entities/session_data.rb
inferno_core-0.3.5 lib/inferno/entities/session_data.rb
inferno_core-0.3.4 lib/inferno/entities/session_data.rb
inferno_core-0.3.3 lib/inferno/entities/session_data.rb
inferno_core-0.3.2 lib/inferno/entities/session_data.rb
inferno_core-0.3.1 lib/inferno/entities/session_data.rb
inferno_core-0.3.0 lib/inferno/entities/session_data.rb
inferno_core-0.3.0.rc1 lib/inferno/entities/session_data.rb
inferno_core-0.2.0 lib/inferno/entities/session_data.rb
inferno_core-0.2.0.rc4 lib/inferno/entities/session_data.rb
inferno_core-0.2.0.rc3 lib/inferno/entities/session_data.rb
inferno_core-0.2.0.rc2 lib/inferno/entities/session_data.rb
inferno_core-0.2.0.rc1 lib/inferno/entities/session_data.rb
inferno_core-0.1.4.pre lib/inferno/entities/session_data.rb