Class: Inferno::Entities::SessionData
- Includes:
- Attributes
- Defined in:
- lib/inferno/entities/session_data.rb
Overview
‘SessionData` represents a piece of saved state for a `TestSession`. These are used to store test inputs and outputs.
Constant Summary collapse
- ATTRIBUTES =
[:id, :name, :value, :test_session_id, :created_at, :updated_at].freeze
Instance Attribute Summary collapse
- #created_at ⇒ Time
-
#id ⇒ String
Id of the test input.
- #name ⇒ String
- #test_session_id ⇒ String
- #updated_at ⇒ Time
- #value ⇒ String
Instance Method Summary collapse
-
#initialize(params) ⇒ SessionData
constructor
A new instance of SessionData.
- #to_hash ⇒ Object
Methods included from Attributes
Constructor Details
#initialize(params) ⇒ SessionData
Returns a new instance of SessionData.
23 24 25 |
# File 'lib/inferno/entities/session_data.rb', line 23 def initialize(params) super(params, ATTRIBUTES) end |
Instance Attribute Details
#created_at ⇒ Time
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/inferno/entities/session_data.rb', line 18 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 |
#id ⇒ String
Returns id of the test input.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/inferno/entities/session_data.rb', line 18 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 |
#name ⇒ String
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/inferno/entities/session_data.rb', line 18 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 |
#test_session_id ⇒ String
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/inferno/entities/session_data.rb', line 18 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 |
#updated_at ⇒ Time
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/inferno/entities/session_data.rb', line 18 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 |
#value ⇒ String
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/inferno/entities/session_data.rb', line 18 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 |
Instance Method Details
#to_hash ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/inferno/entities/session_data.rb', line 27 def to_hash { id:, name:, value:, test_session_id:, created_at:, updated_at: } end |