Class: Ghub::Models::License
- Inherits:
-
Struct
- Object
- Struct
- Ghub::Models::License
- Defined in:
- lib/ghub/models/license.rb
Overview
Defines a license.
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#node_id ⇒ Object
Returns the value of attribute node_id.
-
#spdx_id ⇒ Object
Returns the value of attribute spdx_id.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ License
constructor
A new instance of License.
Constructor Details
#initialize ⇒ License
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
#key ⇒ Object
Returns the value of attribute key
6 7 8 |
# File 'lib/ghub/models/license.rb', line 6 def key @key end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/ghub/models/license.rb', line 6 def name @name end |
#node_id ⇒ Object
Returns the value of attribute node_id
6 7 8 |
# File 'lib/ghub/models/license.rb', line 6 def node_id @node_id end |
#spdx_id ⇒ Object
Returns the value of attribute spdx_id
6 7 8 |
# File 'lib/ghub/models/license.rb', line 6 def spdx_id @spdx_id end |
#url ⇒ Object
Returns the value of attribute url
6 7 8 |
# File 'lib/ghub/models/license.rb', line 6 def url @url end |