Class: SpdxLicenses::License

Inherits:
Object
  • Object
show all
Defined in:
lib/spdx-licenses/license.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/spdx-licenses/license.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/spdx-licenses/license.rb', line 3

def name
  @name
end

#osi_approvedObject (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