Class: Ghub::Models::Label

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

Overview

Defines a label.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLabel

Returns a new instance of Label.



15
16
17
18
# File 'lib/ghub/models/label.rb', line 15

def initialize(**)
  super
  freeze
end

Instance Attribute Details

#colorObject

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



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

def color
  @color
end

#defaultObject

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



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

def default
  @default
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



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

def description
  @description
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



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

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/ghub/models/label.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/label.rb', line 6

def node_id
  @node_id
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



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

def url
  @url
end