Class: CareerBuilder::Client
- Inherits:
-
Object
- Object
- CareerBuilder::Client
- Defined in:
- lib/career_builder/client.rb,
lib/career_builder/client/request.rb,
lib/career_builder/client/get_resume.rb,
lib/career_builder/client/authentication.rb,
lib/career_builder/client/advanced_resume_search.rb,
lib/career_builder/client/resume_actions_remaining_today.rb
Defined Under Namespace
Modules: AdvancedResumeSearch, Authentication, GetResume, Request, ResumeActionsRemainingToday
Constant Summary collapse
- DEFAULT_CONNECTION_RETRY_COUNT =
5
Constants included from ResumeActionsRemainingToday
ResumeActionsRemainingToday::VALID_OPTIONS
Constants included from GetResume
Constants included from AdvancedResumeSearch
AdvancedResumeSearch::VALID_OPTIONS
Constants included from Request
Request::CUSTOM_KEY_TRANSFORMS, Request::RESUME_SERVICE_ENDPOINT_URL
Class Attribute Summary collapse
-
.connection_retry_count ⇒ Object
Returns the value of attribute connection_retry_count.
Instance Attribute Summary collapse
-
#connection_retry_count ⇒ Object
Returns the value of attribute connection_retry_count.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
Instance Method Summary collapse
-
#initialize(email, password, options = {}) ⇒ Client
constructor
A new instance of Client.
- #resumes(options = {}) ⇒ Object
Methods included from ResumeActionsRemainingToday
#resume_actions_remaining_today
Methods included from GetResume
Methods included from AdvancedResumeSearch
Methods included from Request
#auth_request, #parse_terrible_response, #request, #transform_key, #transform_key_value_to_tag, #transform_options_to_xml
Methods included from Authentication
#authenticate, #authenticated?, #session_token
Constructor Details
#initialize(email, password, options = {}) ⇒ Client
Returns a new instance of Client.
27 28 29 30 31 |
# File 'lib/career_builder/client.rb', line 27 def initialize(email, password, = {}) @email, @password = email, password @debug = .fetch(:debug) { false } @connection_retry_count = .fetch(:connection_retry_count) { Client.connection_retry_count } end |
Class Attribute Details
.connection_retry_count ⇒ Object
Returns the value of attribute connection_retry_count.
23 24 25 |
# File 'lib/career_builder/client.rb', line 23 def connection_retry_count @connection_retry_count end |
Instance Attribute Details
#connection_retry_count ⇒ Object
Returns the value of attribute connection_retry_count.
19 20 21 |
# File 'lib/career_builder/client.rb', line 19 def connection_retry_count @connection_retry_count end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
17 18 19 |
# File 'lib/career_builder/client.rb', line 17 def email @email end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
17 18 19 |
# File 'lib/career_builder/client.rb', line 17 def password @password end |
Instance Method Details
#resumes(options = {}) ⇒ Object
33 34 35 |
# File 'lib/career_builder/client.rb', line 33 def resumes( = {}) Resume::LazyCollection.new(self, ) end |