Class: FormatParser::Archive::Entry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



5
6
7
# File 'lib/archive.rb', line 5

def filename
  @filename
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



5
6
7
# File 'lib/archive.rb', line 5

def size
  @size
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



5
6
7
# File 'lib/archive.rb', line 5

def type
  @type
end

Instance Method Details

#to_json(*a) ⇒ Object



6
7
8
# File 'lib/archive.rb', line 6

def to_json(*a)
  to_h.to_json(*a)
end