Class: Goon::Competency
- Inherits:
-
Object
- Object
- Goon::Competency
- Defined in:
- lib/goon/competency.rb
Defined Under Namespace
Classes: InvalidCompetency
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Competency
constructor
A new instance of Competency.
Constructor Details
#initialize(options = {}) ⇒ Competency
Returns a new instance of Competency.
10 11 12 13 14 15 16 17 |
# File 'lib/goon/competency.rb', line 10 def initialize( = {}) @name = [:name].to_s @description = [:description].to_s || "This competency has no description" @body = [:body].to_s validate_name! validate_body! end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
8 9 10 |
# File 'lib/goon/competency.rb', line 8 def body @body end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/goon/competency.rb', line 7 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/goon/competency.rb', line 8 def name @name end |