Class: Rox::Core::Experiment

Inherits:
Object
  • Object
show all
Defined in:
lib/rox/core/impression/models/experiment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#identifierObject

Returns the value of attribute identifier.



4
5
6
# File 'lib/rox/core/impression/models/experiment.rb', line 4

def identifier
  @identifier
end

#is_archivedObject

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

#labelsObject

Returns the value of attribute labels.



4
5
6
# File 'lib/rox/core/impression/models/experiment.rb', line 4

def labels
  @labels
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/rox/core/impression/models/experiment.rb', line 4

def name
  @name
end