Class: Leapfrog::Advice

Inherits:
Object
  • Object
show all
Defined in:
lib/leapfrog/advice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#propensityObject (readonly)

Returns the value of attribute propensity.



3
4
5
# File 'lib/leapfrog/advice.rb', line 3

def propensity
  @propensity
end

#rankingObject (readonly)

Returns the value of attribute ranking.



3
4
5
# File 'lib/leapfrog/advice.rb', line 3

def ranking
  @ranking
end