Class: FullTime::Certification
- Inherits:
-
Object
- Object
- FullTime::Certification
- Defined in:
- lib/full_time/certification.rb
Instance Attribute Summary collapse
-
#certificates(&block) ⇒ Object
Returns the value of attribute certificates.
Instance Method Summary collapse
- #certificate(&block) ⇒ Object
-
#initialize ⇒ Certification
constructor
A new instance of Certification.
Constructor Details
#initialize ⇒ Certification
Returns a new instance of Certification.
5 6 7 |
# File 'lib/full_time/certification.rb', line 5 def initialize @certificates = List.new end |
Instance Attribute Details
#certificates(&block) ⇒ Object
Returns the value of attribute certificates.
3 4 5 |
# File 'lib/full_time/certification.rb', line 3 def certificates @certificates end |
Instance Method Details
#certificate(&block) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/full_time/certification.rb', line 17 def certificate(&block) if block_given? certificate = Certificate.new certificate.instance_eval(&block) @certificates << certificate certificate end end |