Module: Jenkins::Model::InstanceDisplayName

Included in:
InstanceMethods
Defined in:
lib/jenkins/model.rb

Instance Method Summary collapse

Instance Method Details

#display_nameString

Get the display name of this Model. This value will be used as a default whenever this model needs to be shown in the UI. If no display name has been set, then it will use the Model’s class name.

Returns:

  • (String)

    the display name



12
13
14
# File 'lib/jenkins/model.rb', line 12

def display_name
  self.class.display_name
end