Class: Scorecard::Progression
- Inherits:
-
Object
- Object
- Scorecard::Progression
- Defined in:
- lib/scorecard/progression.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#check ⇒ Object
Returns the value of attribute check.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#link_text ⇒ Object
Returns the value of attribute link_text.
-
#link_url ⇒ Object
Returns the value of attribute link_url.
Instance Method Summary collapse
-
#initialize(identifier, amount, &block) ⇒ Progression
constructor
A new instance of Progression.
Constructor Details
#initialize(identifier, amount, &block) ⇒ Progression
Returns a new instance of Progression.
5 6 7 8 9 |
# File 'lib/scorecard/progression.rb', line 5 def initialize(identifier, amount, &block) @identifier, @amount = identifier, amount block.call self end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
2 3 4 |
# File 'lib/scorecard/progression.rb', line 2 def amount @amount end |
#check ⇒ Object
Returns the value of attribute check.
3 4 5 |
# File 'lib/scorecard/progression.rb', line 3 def check @check end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
2 3 4 |
# File 'lib/scorecard/progression.rb', line 2 def identifier @identifier end |
#link_text ⇒ Object
Returns the value of attribute link_text.
3 4 5 |
# File 'lib/scorecard/progression.rb', line 3 def link_text @link_text end |
#link_url ⇒ Object
Returns the value of attribute link_url.
3 4 5 |
# File 'lib/scorecard/progression.rb', line 3 def link_url @link_url end |