Class: SpdxLicenses::License
- Inherits:
-
Object
- Object
- SpdxLicenses::License
- Defined in:
- lib/spdx-licenses/license.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#osi_approved ⇒ Object
(also: #osi_approved?)
readonly
Returns the value of attribute osi_approved.
Instance Method Summary collapse
-
#initialize(id, name, osi) ⇒ License
constructor
A new instance of License.
Constructor Details
#initialize(id, name, osi) ⇒ License
Returns a new instance of License.
6 7 8 9 10 |
# File 'lib/spdx-licenses/license.rb', line 6 def initialize(id, name, osi) @id = id @name = name @osi_approved = osi end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/spdx-licenses/license.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/spdx-licenses/license.rb', line 3 def name @name end |
#osi_approved ⇒ Object (readonly) Also known as: osi_approved?
Returns the value of attribute osi_approved.
3 4 5 |
# File 'lib/spdx-licenses/license.rb', line 3 def osi_approved @osi_approved end |