Module: Jenkins2::API::View

Included in:
Jenkins2::API
Defined in:
lib/jenkins2/api/view.rb

Defined Under Namespace

Classes: Proxy

Constant Summary collapse

MODE_LIST_VIEW =
'hudson.model.ListView'

Instance Method Summary collapse

Instance Method Details

#view(id, **params) ⇒ Object



10
11
12
13
14
# File 'lib/jenkins2/api/view.rb', line 10

def view(id, **params)
	proxy = Proxy.new connection, 'view', params
	proxy.id = id
	proxy
end

#views(**params) ⇒ Object



16
17
18
# File 'lib/jenkins2/api/view.rb', line 16

def views(**params)
	::Jenkins2::ResourceProxy.new(connection, '', params).views
end