class Insights::API::Common::Tenant
Attributes
identity[R]
Public Class Methods
new(identity)
click to toggle source
# File lib/insights/api/common/tenant.rb, line 5 def initialize(identity) @identity = identity["identity"] end
Public Instance Methods
tenant()
click to toggle source
# File lib/insights/api/common/tenant.rb, line 9 def tenant result = identity&.dig("account_number") raise IdentityError, "Tenant key doesn't exist" if result.nil? result end