class SelfSDK::Services::Identity
Input class to request for identities and apps
Public Class Methods
new(client)
click to toggle source
Creates a new identity service. Identity
service allows you request information for your connected users / apps.
@param [SelfSDK::Client] client http client object.
@return [SelfSDK::Services::Identity] facts service.
# File lib/services/identity.rb, line 17 def initialize(client) @client = client end
Public Instance Methods
devices(selfid)
click to toggle source
Gets registered devices for a self identity
@param [String] selfid identity/app selfID @return [Array] array of device ids for the given selfid
# File lib/services/identity.rb, line 25 def devices(selfid) @client.devices(selfid) end
get(selfid)
click to toggle source
Gets an app/identity details
@param [String] selfid gets the identity details (app/user) @return [Hash] with identity details
# File lib/services/identity.rb, line 42 def get(selfid) @client.entity(selfid) end
public_key(selfid, kid)
click to toggle source
Gets an identity public keys
@param [String] selfid gets the identity details (app/user) @param [String] kid the public key id. @return [Array] with the identity public keys
# File lib/services/identity.rb, line 34 def public_key(selfid, kid) @client.public_key(selfid, kid).public_key end