Module: Jenkins::Model::DescribableProxy
- Includes:
- Plugin::Proxy
- 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
Methods included from Plugin::Behavior
extended, #implemented, #included
Methods included from Plugin::Behavior::BehavesAs
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 |
#getDescriptor ⇒ Object
12 13 14 |
# File 'lib/jenkins/model/describable_proxy.rb', line 12 def getDescriptor @plugin.descriptors[@object.class] end |