lib/nexaas_id/client/identity.rb in nexaas_id-client-0.5.0 vs lib/nexaas_id/client/identity.rb in nexaas_id-client-0.6.0
- old
+ new
@@ -6,10 +6,12 @@
# @example Obtaining a user's profile:
# client = NexaasID::Client::Identity.new(user_credentials)
# client.profile.get
#
class NexaasID::Client::Identity
+ attr_reader :credentials
+
# Creates an instance of this client.
#
# @param [
# #access_token, #access_token=,
# #refresh_token, #refresh_token=,
@@ -38,10 +40,9 @@
NexaasID::Resources::Widget.new(api)
end
private
- attr_reader :credentials
attr_accessor :token
ATTRIBUTES = %i[access_token refresh_token expires_at expires_in].freeze
def api