Class: ActiveForce::Bulk::JobResult
- Inherits:
-
Object
- Object
- ActiveForce::Bulk::JobResult
- Defined in:
- lib/active_force/bulk/job_result.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#failed ⇒ Object
readonly
Returns the value of attribute failed.
-
#job ⇒ Object
readonly
Returns the value of attribute job.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
-
#successful ⇒ Object
readonly
Returns the value of attribute successful.
Instance Method Summary collapse
-
#initialize(job:) ⇒ JobResult
constructor
A new instance of JobResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(job:) ⇒ JobResult
Returns a new instance of JobResult.
6 7 8 9 10 11 12 |
# File 'lib/active_force/bulk/job_result.rb', line 6 def initialize(job:) @job = job @stats = result_from_job_info @failed = failed_results @successful = successful_results @errors = errors_from_failed_results end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
4 5 6 |
# File 'lib/active_force/bulk/job_result.rb', line 4 def errors @errors end |
#failed ⇒ Object
Returns the value of attribute failed.
4 5 6 |
# File 'lib/active_force/bulk/job_result.rb', line 4 def failed @failed end |
#job ⇒ Object (readonly)
Returns the value of attribute job.
4 5 6 |
# File 'lib/active_force/bulk/job_result.rb', line 4 def job @job end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
4 5 6 |
# File 'lib/active_force/bulk/job_result.rb', line 4 def stats @stats end |
#successful ⇒ Object
Returns the value of attribute successful.
4 5 6 |
# File 'lib/active_force/bulk/job_result.rb', line 4 def successful @successful end |
Instance Method Details
#success? ⇒ Boolean
14 15 16 |
# File 'lib/active_force/bulk/job_result.rb', line 14 def success? failed.blank? && successful.present? end |