Class: Unified2::Classification
- Inherits:
-
Object
- Object
- Unified2::Classification
- Defined in:
- lib/unified2/classification.rb
Overview
Classification
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#short ⇒ Object
Returns the value of attribute short.
Instance Method Summary collapse
-
#initialize(classification = {}) ⇒ Classification
constructor
Initialize classification.
-
#to_s ⇒ String
String.
Constructor Details
#initialize(classification = {}) ⇒ Classification
Initialize classification
22 23 24 25 26 27 |
# File 'lib/unified2/classification.rb', line 22 def initialize(classification={}) @id = classification[:classification_id] @name = classification[:name] @short = classification[:short] @severity = classification[:severity] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/unified2/classification.rb', line 10 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/unified2/classification.rb', line 10 def name @name end |
#severity ⇒ Object
Returns the value of attribute severity.
10 11 12 |
# File 'lib/unified2/classification.rb', line 10 def severity @severity end |
#short ⇒ Object
Returns the value of attribute short.
10 11 12 |
# File 'lib/unified2/classification.rb', line 10 def short @short end |