Class: Spdx::License
- Inherits:
-
Object
- Object
- Spdx::License
- Defined in:
- lib/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_approved) ⇒ License
constructor
A new instance of License.
Constructor Details
#initialize(id, name, osi_approved) ⇒ License
Returns a new instance of License.
8 9 10 11 12 |
# File 'lib/license.rb', line 8 def initialize(id, name, osi_approved) @id = id @name = name @osi_approved = osi_approved end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/license.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/license.rb', line 5 def name @name end |
#osi_approved ⇒ Object (readonly) Also known as: osi_approved?
Returns the value of attribute osi_approved.
5 6 7 |
# File 'lib/license.rb', line 5 def osi_approved @osi_approved end |