Class: Hackle::Variation
- Inherits:
-
Object
- Object
- Hackle::Variation
- Defined in:
- lib/hackle/models/variation.rb
Instance Attribute Summary collapse
-
#dropped ⇒ Object
Returns the value of attribute dropped.
- #id ⇒ Integer
- #key ⇒ String
Instance Method Summary collapse
-
#initialize(id:, key:, dropped:) ⇒ Variation
constructor
A new instance of Variation.
Constructor Details
#initialize(id:, key:, dropped:) ⇒ Variation
Returns a new instance of Variation.
15 16 17 18 19 |
# File 'lib/hackle/models/variation.rb', line 15 def initialize(id:, key:, dropped:) @id = id @key = key @dropped = dropped end |
Instance Attribute Details
#dropped ⇒ Object
Returns the value of attribute dropped.
10 |
# File 'lib/hackle/models/variation.rb', line 10 attr_reader :id, :key, :dropped |
#id ⇒ Integer
10 11 12 |
# File 'lib/hackle/models/variation.rb', line 10 def id @id end |
#key ⇒ String
10 |
# File 'lib/hackle/models/variation.rb', line 10 attr_reader :id, :key, :dropped |