Class: FileComposer::Documents::Result
- Inherits:
-
Object
- Object
- FileComposer::Documents::Result
- Defined in:
- lib/file_composer/documents/result.rb
Overview
Returns the result of a FileComposer::Document#write! call. Each #write! call can produce N number of documents and each document will be represented in this instance’s file_results attribute.
Instance Attribute Summary collapse
-
#file_results ⇒ Object
readonly
Returns the value of attribute file_results.
-
#time_in_seconds ⇒ Object
readonly
Returns the value of attribute time_in_seconds.
Instance Method Summary collapse
-
#initialize(file_results, time_in_seconds) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(file_results, time_in_seconds) ⇒ Result
Returns a new instance of Result.
19 20 21 22 23 24 |
# File 'lib/file_composer/documents/result.rb', line 19 def initialize(file_results, time_in_seconds) @file_results = Array(file_results) @time_in_seconds = time_in_seconds freeze end |
Instance Attribute Details
#file_results ⇒ Object (readonly)
Returns the value of attribute file_results.
16 17 18 |
# File 'lib/file_composer/documents/result.rb', line 16 def file_results @file_results end |
#time_in_seconds ⇒ Object (readonly)
Returns the value of attribute time_in_seconds.
16 17 18 |
# File 'lib/file_composer/documents/result.rb', line 16 def time_in_seconds @time_in_seconds end |