Class: Hackle::Experiment
- Inherits:
-
Object
- Object
- Hackle::Experiment
- Defined in:
- lib/hackle/models/experiment.rb
Defined Under Namespace
Instance Attribute Summary collapse
- #id ⇒ Integer readonly
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(id:, key:) ⇒ Experiment
constructor
A new instance of Experiment.
Constructor Details
#initialize(id:, key:) ⇒ Experiment
Returns a new instance of Experiment.
12 13 14 15 |
# File 'lib/hackle/models/experiment.rb', line 12 def initialize(id:, key:) @id = id @key = key end |
Instance Attribute Details
#id ⇒ Integer (readonly)
8 9 10 |
# File 'lib/hackle/models/experiment.rb', line 8 def id @id end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
8 |
# File 'lib/hackle/models/experiment.rb', line 8 attr_reader :id, :key |