Module: Jenkins::Model::ClassDisplayName

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

Instance Method Summary collapse

Instance Method Details

#display_name(name = nil) ⇒ String

Set or get the display name of this Model Class.

If ‘name` is not nil, then sets the display name.

Returns:

  • (String)

    the display name



23
24
25
# File 'lib/jenkins/model.rb', line 23

def display_name(name = nil)
  name.nil? ? @display_name || self.name : @display_name = name.to_s
end