Class: Scorecard::Progression

Inherits:
Object
  • Object
show all
Defined in:
lib/scorecard/progression.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject (readonly)

Returns the value of attribute amount.



2
3
4
# File 'lib/scorecard/progression.rb', line 2

def amount
  @amount
end

#checkObject

Returns the value of attribute check.



3
4
5
# File 'lib/scorecard/progression.rb', line 3

def check
  @check
end

#identifierObject (readonly)

Returns the value of attribute identifier.



2
3
4
# File 'lib/scorecard/progression.rb', line 2

def identifier
  @identifier
end

Returns the value of attribute link_text.



3
4
5
# File 'lib/scorecard/progression.rb', line 3

def link_text
  @link_text
end

Returns the value of attribute link_url.



3
4
5
# File 'lib/scorecard/progression.rb', line 3

def link_url
  @link_url
end