Class: RestClient::Resource
Instance Method Summary
collapse
build_from_response
#log
#fully_escape, included, #path_escape, #query_escape
Instance Method Details
#core_conjur_account ⇒ Object
21
22
23
|
# File 'lib/conjur/api.rb', line 21
def core_conjur_account
Conjur::Core::API.conjur_account
end
|
#path_components ⇒ Object
29
30
31
32
|
# File 'lib/conjur/api.rb', line 29
def path_components
require 'uri'
URI.parse(self.url).path.split('/').map{|e| URI.unescape e}
end
|
#to_json(options = {}) ⇒ Object
25
26
27
|
# File 'lib/conjur/api.rb', line 25
def to_json(options = {})
{}
end
|
#username ⇒ Object
34
35
36
|
# File 'lib/conjur/api.rb', line 34
def username
options[:user] || options[:username]
end
|