Class: Insights::API::Common::User
- Inherits:
-
Object
- Object
- Insights::API::Common::User
- Defined in:
- lib/insights/api/common/user.rb
Instance Method Summary collapse
-
#initialize(identity) ⇒ User
constructor
A new instance of User.
- #tenant ⇒ Object
Constructor Details
#initialize(identity) ⇒ User
Returns a new instance of User.
7 8 9 |
# File 'lib/insights/api/common/user.rb', line 7 def initialize(identity) @identity = identity end |
Instance Method Details
#tenant ⇒ Object
26 27 28 29 |
# File 'lib/insights/api/common/user.rb', line 26 def tenant ActiveSupport::Deprecation.warn("Please switch to request.tenant, request.user.tenant will be removed in a future release.") find_tenant_key end |