Class: OpenDal::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/opendal_ruby/entry.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



31
32
33
# File 'lib/opendal_ruby/entry.rb', line 31

def inspect
  "#<#{self.class.name} path: \"#{path}\", metadata: #{.inspect}>"
end

#to_hHash

Returns the canonical data about an entry

Returns:

  • (Hash)


24
25
26
27
28
29
# File 'lib/opendal_ruby/entry.rb', line 24

def to_h
  {
    path: path,
    metadata: 
  }
end