lib/nubank_sdk/user.rb in nubank_sdk-0.6.1 vs lib/nubank_sdk/user.rb in nubank_sdk-0.7.0

- old
+ new

@@ -1,8 +1,11 @@ # frozen_string_literal: true module NubankSdk + # + # Controller of user actions in nubank + # class User # # Controller of user actions in nubank # # @param [String] cpf @@ -15,11 +18,11 @@ # # Returns instance of authentications methods # # @return [NubankSdk::Auth] def auth - @auth ||= NubankSdk::Auth.new( + @auth ||= Auth.new( cpf: @cpf, api_routes: api_routes, connection_adapter: @connection_adapter ) end @@ -27,26 +30,26 @@ # # Returns instance of account methods # # @return [NubankSdk::Account] def account - @account ||= NubankSdk::Account.new(connection: connection, api_routes: api_routes) + @account ||= Account.new(connection: connection, api_routes: api_routes) end # # Returns instance of credit methods # # @return [NubankSdk::Credit] def credit - @credit ||= NubankSdk::Credit.new(connection: connection, api_routes: api_routes) + @credit ||= Credit.new(connection: connection, api_routes: api_routes) end # # An instance of apis routes # # @return [NubankSdk::ApiRoutes] def api_routes - @api_routes ||= NubankSdk::ApiRoutes.new + @api_routes ||= ApiRoutes.new end private # @!visibility private