Sha256: ffdfae09064d239f0bf147ca1799edaca87302cf5cb9793ad06a01ae8b8466bb

Contents?: true

Size: 187 Bytes

Versions: 4

Compression:

Stored size: 187 Bytes

Contents

module Conjur
  module ActsAsRole
    def role
      require 'conjur/role'
      Conjur::Role.new("#{Conjur::Authz::API.host}/roles/#{path_escape roleid}", self.options)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
conjur-api-2.1.1 lib/conjur/acts_as_role.rb
conjur-api-2.1.0 lib/conjur/acts_as_role.rb
conjur-api-2.0.1 lib/conjur/acts_as_role.rb
conjur-api-2.0.0 lib/conjur/acts_as_role.rb