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.
-
#md5 ⇒ Object
Returns the value of attribute md5.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#sha1 ⇒ Object
Returns the value of attribute sha1.
-
#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
115 116 117 |
# File 'lib/sfdown.rb', line 115 def children @children end |
#downloads ⇒ Object
Returns the value of attribute downloads
115 116 117 |
# File 'lib/sfdown.rb', line 115 def downloads @downloads end |
#md5 ⇒ Object
Returns the value of attribute md5
115 116 117 |
# File 'lib/sfdown.rb', line 115 def md5 @md5 end |
#name ⇒ Object
Returns the value of attribute name
115 116 117 |
# File 'lib/sfdown.rb', line 115 def name @name end |
#path ⇒ Object
Returns the value of attribute path
115 116 117 |
# File 'lib/sfdown.rb', line 115 def path @path end |
#sha1 ⇒ Object
Returns the value of attribute sha1
115 116 117 |
# File 'lib/sfdown.rb', line 115 def sha1 @sha1 end |
#size ⇒ Object
Returns the value of attribute size
115 116 117 |
# File 'lib/sfdown.rb', line 115 def size @size end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
115 116 117 |
# File 'lib/sfdown.rb', line 115 def @timestamp end |
#type ⇒ Object
Returns the value of attribute type
115 116 117 |
# File 'lib/sfdown.rb', line 115 def type @type end |
Instance Method Details
#dir? ⇒ Boolean
116 |
# File 'lib/sfdown.rb', line 116 def dir? = type == :d |
#file? ⇒ Boolean
117 |
# File 'lib/sfdown.rb', line 117 def file? = type == :f |