Class: Portable::Writers::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/portable/writers/result.rb

Overview

Result return object from a Writer#write! call.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filenameObject (readonly)

Returns the value of attribute filename.



14
15
16
# File 'lib/portable/writers/result.rb', line 14

def filename
  @filename
end

#time_in_secondsObject (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