Class: E2B::Models::WriteInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/e2b/models/entry_info.rb

Overview

Information about a file write operation

Returned after writing a file to confirm the path that was written.

Examples:

info = sandbox.files.write("/home/user/output.txt", "content")
puts info.path  # => "/home/user/output.txt"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:) ⇒ WriteInfo

Returns a new instance of WriteInfo.

Parameters:

  • path (String)

    Path of the written file



238
239
240
# File 'lib/e2b/models/entry_info.rb', line 238

def initialize(path:)
  @path = path
end

Instance Attribute Details

#pathString (readonly)

Returns Path of the written file.

Returns:

  • (String)

    Path of the written file



235
236
237
# File 'lib/e2b/models/entry_info.rb', line 235

def path
  @path
end