Class: Spdx::License

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

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