Class: Rox::Core::Experiment
- Inherits:
-
Object
- Object
- Rox::Core::Experiment
- Defined in:
- lib/rox/core/impression/models/experiment.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#is_archived ⇒ Object
Returns the value of attribute is_archived.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(experiment) ⇒ Experiment
constructor
A new instance of Experiment.
Constructor Details
#initialize(experiment) ⇒ Experiment
Returns a new instance of Experiment.
6 7 8 9 10 11 |
# File 'lib/rox/core/impression/models/experiment.rb', line 6 def initialize(experiment) @name = experiment.name @identifier = experiment.id @is_archived = experiment.is_archived @labels = experiment.labels end |
Instance Attribute Details
#identifier ⇒ Object
Returns the value of attribute identifier.
4 5 6 |
# File 'lib/rox/core/impression/models/experiment.rb', line 4 def identifier @identifier end |
#is_archived ⇒ Object
Returns the value of attribute is_archived.
4 5 6 |
# File 'lib/rox/core/impression/models/experiment.rb', line 4 def is_archived @is_archived end |
#labels ⇒ Object
Returns the value of attribute labels.
4 5 6 |
# File 'lib/rox/core/impression/models/experiment.rb', line 4 def labels @labels end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/rox/core/impression/models/experiment.rb', line 4 def name @name end |