Class: Portable::Writers::Result
- Inherits:
-
Object
- Object
- Portable::Writers::Result
- Defined in:
- lib/portable/writers/result.rb
Overview
Result return object from a Writer#write! call.
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#time_in_seconds ⇒ Object
readonly
Returns the value of attribute time_in_seconds.
Instance Method Summary collapse
-
#initialize(filename, time_in_seconds) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(filename, time_in_seconds) ⇒ Result
Returns a new instance of Result.
16 17 18 19 20 21 |
# File 'lib/portable/writers/result.rb', line 16 def initialize(filename, time_in_seconds) @filename = filename @time_in_seconds = time_in_seconds freeze end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
14 15 16 |
# File 'lib/portable/writers/result.rb', line 14 def filename @filename end |
#time_in_seconds ⇒ Object (readonly)
Returns the value of attribute time_in_seconds.
14 15 16 |
# File 'lib/portable/writers/result.rb', line 14 def time_in_seconds @time_in_seconds end |