Class: Leapfrog::Advice
- Inherits:
-
Object
- Object
- Leapfrog::Advice
- Defined in:
- lib/leapfrog/advice.rb
Instance Attribute Summary collapse
-
#propensity ⇒ Object
readonly
Returns the value of attribute propensity.
-
#ranking ⇒ Object
readonly
Returns the value of attribute ranking.
Instance Method Summary collapse
-
#initialize(propensity: nil, ranking: nil) ⇒ Advice
constructor
A new instance of Advice.
Constructor Details
#initialize(propensity: nil, ranking: nil) ⇒ Advice
Returns a new instance of Advice.
5 6 7 8 |
# File 'lib/leapfrog/advice.rb', line 5 def initialize(propensity: nil, ranking: nil) @propensity = propensity @ranking = ranking end |
Instance Attribute Details
#propensity ⇒ Object (readonly)
Returns the value of attribute propensity.
3 4 5 |
# File 'lib/leapfrog/advice.rb', line 3 def propensity @propensity end |
#ranking ⇒ Object (readonly)
Returns the value of attribute ranking.
3 4 5 |
# File 'lib/leapfrog/advice.rb', line 3 def ranking @ranking end |