Class: Sfdown::Node
- Inherits:
-
Struct
- Object
- Struct
- Sfdown::Node
- Defined in:
- lib/sfdown.rb
Overview
One tree entry (folder or file).
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#downloads ⇒ Object
Returns the value of attribute downloads.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#size ⇒ Object
Returns the value of attribute size.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
108 109 110 |
# File 'lib/sfdown.rb', line 108 def children @children end |
#downloads ⇒ Object
Returns the value of attribute downloads
108 109 110 |
# File 'lib/sfdown.rb', line 108 def downloads @downloads end |
#name ⇒ Object
Returns the value of attribute name
108 109 110 |
# File 'lib/sfdown.rb', line 108 def name @name end |
#path ⇒ Object
Returns the value of attribute path
108 109 110 |
# File 'lib/sfdown.rb', line 108 def path @path end |
#size ⇒ Object
Returns the value of attribute size
108 109 110 |
# File 'lib/sfdown.rb', line 108 def size @size end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
108 109 110 |
# File 'lib/sfdown.rb', line 108 def @timestamp end |
#type ⇒ Object
Returns the value of attribute type
108 109 110 |
# File 'lib/sfdown.rb', line 108 def type @type end |
Instance Method Details
#dir? ⇒ Boolean
109 |
# File 'lib/sfdown.rb', line 109 def dir? = type == :d |
#file? ⇒ Boolean
110 |
# File 'lib/sfdown.rb', line 110 def file? = type == :f |