Class: SalesforceCertificationCalculator::Section
- Inherits:
-
Object
- Object
- SalesforceCertificationCalculator::Section
- Defined in:
- lib/salesforce_certification_calculator/section.rb
Instance Attribute Summary collapse
-
#name ⇒ String
Name of the section.
-
#score ⇒ Number
Individual’s score on the specific section, represented as an integer.
-
#weight ⇒ Number
Percentage indicating how much the section is worth to the total score, represented as an integer.
Instance Method Summary collapse
-
#initialize(name, weight, score) ⇒ Section
constructor
Creates Section object.
Constructor Details
#initialize(name, weight, score) ⇒ Section
Creates Section object
20 21 22 23 24 |
# File 'lib/salesforce_certification_calculator/section.rb', line 20 def initialize(name, weight, score) @name = name @weight = weight @score = score end |
Instance Attribute Details
#name ⇒ String
Returns name of the section.
10 11 12 |
# File 'lib/salesforce_certification_calculator/section.rb', line 10 def name @name end |
#score ⇒ Number
Returns individual’s score on the specific section, represented as an integer.
10 |
# File 'lib/salesforce_certification_calculator/section.rb', line 10 attr_accessor :name, :weight, :score |
#weight ⇒ Number
Returns percentage indicating how much the section is worth to the total score, represented as an integer.
10 |
# File 'lib/salesforce_certification_calculator/section.rb', line 10 attr_accessor :name, :weight, :score |