lib/finapps/rest/base_client.rb in finapps-2.0.10 vs lib/finapps/rest/base_client.rb in finapps-2.0.11
- old
+ new
@@ -13,9 +13,13 @@
def initialize(options, logger=nil)
@config = FinApps::REST::Configuration.new options
@logger = logger
end
+ def user_credentials?
+ config.valid_user_credentials?
+ end
+
# Returns an initialized Faraday connection object.
#
# @return Faraday::Connection.
def connection
@connection ||= faraday(config, logger)