Module: Jenkins::Plugin::Proxy
- Included in:
- Jenkins::Plugin::Proxies::Action, Jenkins::Plugin::Proxies::BuildWrapper, Jenkins::Plugin::Proxies::Builder, Jenkins::Plugin::Proxies::Publisher, Jenkins::Plugin::Proxies::RootAction
- Defined in:
- lib/jenkins/plugin/proxy.rb
Overview
The Jenkins Ruby API uses “proxies” which are Java subclasses of the native Jenkins Java API. These proxies provide the mapping between the Java API and the idomatic Ruby API. Sometimes these mappings can appear convoluted, but it is only so in order to make the Ruby side as simple and clean as possible.
This module provides common functionality for all proxies.
Defined Under Namespace
Modules: Customs, Marshal, Unmarshal
Class Method Summary collapse
Instance Method Summary collapse
- #getTarget ⇒ Object
-
#initialize(plugin, object) ⇒ Object
Every Proxy object has a reference to the plugin to which it belongs, as well as the native Ruby object which it represents.
Class Method Details
Instance Method Details
#getTarget ⇒ Object
33 34 35 |
# File 'lib/jenkins/plugin/proxy.rb', line 33 def getTarget @object end |
#initialize(plugin, object) ⇒ Object
Every Proxy object has a reference to the plugin to which it belongs, as well as the native Ruby object which it represents.
25 26 27 28 29 |
# File 'lib/jenkins/plugin/proxy.rb', line 25 def initialize(plugin, object) super() if defined? super @plugin, @object = plugin, object @pluginid = @plugin.name end |