Class: Variant
- Inherits:
-
Struct
- Object
- Struct
- Variant
- Defined in:
- lib/ab/variant.rb
Instance Attribute Summary collapse
-
#accumulated_chance_weight ⇒ Object
Returns the value of attribute accumulated_chance_weight.
-
#hash ⇒ Object
Returns the value of attribute hash.
Instance Method Summary collapse
Instance Attribute Details
#accumulated_chance_weight ⇒ Object
Returns the value of attribute accumulated_chance_weight
1 2 3 |
# File 'lib/ab/variant.rb', line 1 def accumulated_chance_weight @accumulated_chance_weight end |
#hash ⇒ Object
Returns the value of attribute hash
1 2 3 |
# File 'lib/ab/variant.rb', line 1 def hash @hash end |
Instance Method Details
#chance_weight ⇒ Object
2 3 4 |
# File 'lib/ab/variant.rb', line 2 def chance_weight hash['chance_weight'] end |
#name ⇒ Object
6 7 8 |
# File 'lib/ab/variant.rb', line 6 def name hash['name'] end |