Class: S3sync::Node
- Inherits:
-
Object
- Object
- S3sync::Node
- Defined in:
- lib/s3sync/s3sync.rb
Overview
———- NODE ———- #
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
- #directory? ⇒ Boolean
-
#initialize(name = '', size = 0, tag = '') ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(name = '', size = 0, tag = '') ⇒ Node
Returns a new instance of Node.
417 418 419 420 421 |
# File 'lib/s3sync/s3sync.rb', line 417 def initialize(name='', size = 0, tag = '') @name = name @size = size @tag = tag end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
414 415 416 |
# File 'lib/s3sync/s3sync.rb', line 414 def name @name end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
415 416 417 |
# File 'lib/s3sync/s3sync.rb', line 415 def size @size end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
416 417 418 |
# File 'lib/s3sync/s3sync.rb', line 416 def tag @tag end |
Instance Method Details
#directory? ⇒ Boolean
422 423 424 |
# File 'lib/s3sync/s3sync.rb', line 422 def directory?() @tag == $S3syncDirTag and @size == $S3syncDirString.length end |