Class: Hackle::Experiment

Inherits:
Object
  • Object
show all
Defined in:
lib/hackle/models/experiment.rb

Direct Known Subclasses

Completed, Running

Defined Under Namespace

Classes: Completed, Running

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, key:) ⇒ Experiment

Returns a new instance of Experiment.

Parameters:

  • id (Integer)
  • key (Integer)


12
13
14
15
# File 'lib/hackle/models/experiment.rb', line 12

def initialize(id:, key:)
  @id = id
  @key = key
end

Instance Attribute Details

#idInteger (readonly)

Returns:

  • (Integer)


8
9
10
# File 'lib/hackle/models/experiment.rb', line 8

def id
  @id
end

#keyObject (readonly)

Returns the value of attribute key.



8
# File 'lib/hackle/models/experiment.rb', line 8

attr_reader :id, :key