Class: RestClient::Resource

Inherits:
Object
  • Object
show all
Extended by:
Conjur::BuildFromResponse
Includes:
Conjur::Escape, Conjur::LogSource
Defined in:
lib/conjur/api.rb

Instance Method Summary collapse

Methods included from Conjur::BuildFromResponse

build_from_response

Methods included from Conjur::LogSource

#log

Methods included from Conjur::Escape

#fully_escape, included, #path_escape, #query_escape

Instance Method Details

#core_conjur_accountObject



21
22
23
# File 'lib/conjur/api.rb', line 21

def 
  Conjur::Core::API.
end

#path_componentsObject



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

#usernameObject



34
35
36
# File 'lib/conjur/api.rb', line 34

def username
  options[:user] || options[:username]
end