Class: Spdx::Exception
- Inherits:
-
Object
- Object
- Spdx::Exception
- Defined in:
- lib/exception.rb
Instance Attribute Summary collapse
-
#deprecated ⇒ Object
(also: #deprecated?)
readonly
Returns the value of attribute deprecated.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id, name, deprecated) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(id, name, deprecated) ⇒ Exception
Returns a new instance of Exception.
8 9 10 11 12 |
# File 'lib/exception.rb', line 8 def initialize(id, name, deprecated) @id = id @name = name @deprecated = deprecated end |
Instance Attribute Details
#deprecated ⇒ Object (readonly) Also known as: deprecated?
Returns the value of attribute deprecated.
5 6 7 |
# File 'lib/exception.rb', line 5 def deprecated @deprecated end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/exception.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/exception.rb', line 5 def name @name end |