Class: Spdx::Exception

Inherits:
Object
  • Object
show all
Defined in:
lib/exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#deprecatedObject (readonly) Also known as: deprecated?

Returns the value of attribute deprecated.



5
6
7
# File 'lib/exception.rb', line 5

def deprecated
  @deprecated
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/exception.rb', line 5

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/exception.rb', line 5

def name
  @name
end