Module: Jenkins::Model::DescribableNative

Includes:
Describable
Defined in:
lib/jenkins/model/describable_native.rb

Constant Summary

Constants included from Describable

Jenkins::Model::Describable::DescribableError

Instance Method Summary collapse

Methods included from Plugin::Behavior

extended, #implemented, #included

Methods included from Plugin::Behavior::BehavesAs

#behaves_as

Instance Method Details

#get(name) ⇒ Object



16
17
18
# File 'lib/jenkins/model/describable_native.rb', line 16

def get(name)
  @object.respond_to?(name) ? @object.send(name) : nil
end

#getDescriptorObject



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

def getDescriptor
  Jenkins.plugin.descriptors[@object.class]
end