Class: TreeHaver::ZipUnsafeEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



296
297
298
# File 'lib/tree_haver/contracts.rb', line 296

def category
  @category
end

#normalized_pathObject

Returns the value of attribute normalized_path

Returns:

  • (Object)

    the current value of normalized_path



296
297
298
# File 'lib/tree_haver/contracts.rb', line 296

def normalized_path
  @normalized_path
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



296
297
298
# File 'lib/tree_haver/contracts.rb', line 296

def path
  @path
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



296
297
298
# File 'lib/tree_haver/contracts.rb', line 296

def reason
  @reason
end

Instance Method Details

#to_hObject



297
298
299
300
301
302
303
304
# File 'lib/tree_haver/contracts.rb', line 297

def to_h
  {
    path: path,
    normalized_path: normalized_path,
    category: category,
    reason: reason
  }
end