Module: Jenkins::Model::DescribableProxy

Includes:
Plugin::Proxy
Included in:
Slaves::NodePropertyProxy, Tasks::BuildStepProxy, Tasks::BuildWrapperProxy
Defined in:
lib/jenkins/model/describable_proxy.rb

Overview

mix-in on top of the subtypes of the Describable Java class to add standard behaviour as a proxy to Ruby object

Instance Method Summary collapse

Methods included from Plugin::Proxy

#getTarget, #initialize

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_proxy.rb', line 16

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

#getDescriptorObject



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

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