lib/conjur/api.rb in conjur-api-4.4.1 vs lib/conjur/api.rb in conjur-api-4.6.0

- old
+ new

@@ -16,10 +16,11 @@ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # +require 'conjur/cast' require 'conjur/configuration' require 'conjur/env' require 'conjur/base' require 'conjur/build_from_response' require 'conjur/acts_as_resource' @@ -37,22 +38,18 @@ require 'conjur-api/version' class RestClient::Resource include Conjur::Escape include Conjur::LogSource + include Conjur::Cast extend Conjur::BuildFromResponse - + def core_conjur_account Conjur::Core::API.conjur_account end def to_json(options = {}) {} - end - - def path_components - require 'uri' - URI.parse(self.url).path.split('/').map{|e| URI.unescape e} end def username options[:user] || options[:username] end \ No newline at end of file