Class: Gitlab::ColorModes::Mode

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/color_modes.rb

Overview

Struct class representing a single Mode

Instance Attribute Summary collapse

Instance Attribute Details

#css_classObject

Returns the value of attribute css_class

Returns:

  • (Object)

    the current value of css_class



14
15
16
# File 'lib/gitlab/color_modes.rb', line 14

def css_class
  @css_class
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



14
15
16
# File 'lib/gitlab/color_modes.rb', line 14

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



14
15
16
# File 'lib/gitlab/color_modes.rb', line 14

def name
  @name
end