lib/nightcrawler_swift/connection.rb in nightcrawler_swift-0.11.0 vs lib/nightcrawler_swift/connection.rb in nightcrawler_swift-0.11.1
- old
+ new
@@ -14,9 +14,10 @@
attr_writer :auth_response
attr_reader :token_id, :expires_at
connected_attr_reader :catalog, :admin_url, :upload_url, :public_url, :internal_url
def auth_response
+ @auth_response ||= nil
authenticate! if @auth_response.nil?
@auth_response
end
def connect!