Class: FormatParser::Archive::Entry
- Inherits:
-
Struct
- Object
- Struct
- FormatParser::Archive::Entry
- Defined in:
- lib/archive.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#size ⇒ Object
Returns the value of attribute size.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename
5 6 7 |
# File 'lib/archive.rb', line 5 def filename @filename end |
#size ⇒ Object
Returns the value of attribute size
5 6 7 |
# File 'lib/archive.rb', line 5 def size @size end |
#type ⇒ Object
Returns the value of attribute 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 |