lib/career_builder/client.rb in career_builder-0.2.1 vs lib/career_builder/client.rb in career_builder-0.2.2
- old
+ new
@@ -14,12 +14,21 @@
include GetResume
include ResumeActionsRemainingToday
attr_reader :email, :password
+ attr_accessor :connection_retry_count
+
+ DEFAULT_CONNECTION_RETRY_COUNT = 5
+ class << self
+ attr_accessor :connection_retry_count
+ end
+ self.connection_retry_count = DEFAULT_CONNECTION_RETRY_COUNT
+
def initialize(email, password, options = {})
@email, @password = email, password
@debug = options.fetch(:debug) { false }
+ @connection_retry_count = options.fetch(:connection_retry_count) { Client.connection_retry_count }
end
def resumes(options = {})
Resume::LazyCollection.new(self, options)
end