class Xooa::Response::IdentityResponse
Attributes
access[RW]
apiToken[RW]
appId[RW]
attributes[RW]
canManageIdentities[RW]
createdAt[RW]
id[RW]
identityName[RW]
updatedAt[RW]
Public Class Methods
new(identityName, apiToken, id, appId, access, canManageIdentities, createdAt, updatedAt, attributes)
click to toggle source
Initialize IdentityResponse
@param identityName name for the identity @param apiToken API Token for the identity @param id id for the identity @param appId app id to which the identity belongs @param access access permissions for the identity @param canManageIdentities permission to manage other identities @param createdAt the timestamp when the identity was created @param updatedAt the timestamp when the identity was last updated @param attributes list of attributes for the identity @return IdentityResponse
# File lib/xooa/response/IdentityResponse.rb, line 51 def initialize(identityName, apiToken, id, appId, access, canManageIdentities, createdAt, updatedAt, attributes) @identityName = identityName @apiToken = apiToken @id = id @appId = appId @access = access @canManageIdentities = canManageIdentities @createdAt = createdAt @updatedAt = updatedAt @attributes = attributes end
Public Instance Methods
display()
click to toggle source
display the details for the IdentityResponse
# File lib/xooa/response/IdentityResponse.rb, line 64 def display puts("Identity Name - #{@identityName}") puts("API Token - #{@apiToken}") puts("Id - #{@id}") puts("App Id - #{@appId}") puts("Access - #{@access}") puts("Can Manage Identities - #{@canManageIdentities}") puts("createdAt - #{@createdAt}") puts("UpdatedAt - #{@updatedAt}") puts("Attributes - ") if @attributes.respond_to?("each") @attributes.each do |attribute| attribute.display end else attributes.display end end