Class: Ghub::Models::License

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

Overview

Defines a license.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLicense

Returns a new instance of License.



13
14
15
16
# File 'lib/ghub/models/license.rb', line 13

def initialize(**)
  super
  freeze
end

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



6
7
8
# File 'lib/ghub/models/license.rb', line 6

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/ghub/models/license.rb', line 6

def name
  @name
end

#node_idObject

Returns the value of attribute node_id

Returns:

  • (Object)

    the current value of node_id



6
7
8
# File 'lib/ghub/models/license.rb', line 6

def node_id
  @node_id
end

#spdx_idObject

Returns the value of attribute spdx_id

Returns:

  • (Object)

    the current value of spdx_id



6
7
8
# File 'lib/ghub/models/license.rb', line 6

def spdx_id
  @spdx_id
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



6
7
8
# File 'lib/ghub/models/license.rb', line 6

def url
  @url
end