Class: S3Sync::Node
Constant Summary collapse
- SMALL_FILE =
50.kilobytes
50 * 1024
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#path ⇒ Object
Returns the value of attribute path.
-
#size ⇒ Object
Returns the value of attribute size.
-
#small_comparator ⇒ Object
Returns the value of attribute small_comparator.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #full ⇒ Object
-
#initialize(base, path, size, small_comparator = nil) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(base, path, size, small_comparator = nil) ⇒ Node
Returns a new instance of Node.
81 82 83 84 85 86 |
# File 'lib/s3sync/sync.rb', line 81 def initialize base, path, size, small_comparator = nil @base = base @path = path @size = size @small_comparator = small_comparator end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
76 77 78 |
# File 'lib/s3sync/sync.rb', line 76 def base @base end |
#path ⇒ Object
Returns the value of attribute path.
77 78 79 |
# File 'lib/s3sync/sync.rb', line 77 def path @path end |
#size ⇒ Object
Returns the value of attribute size.
78 79 80 |
# File 'lib/s3sync/sync.rb', line 78 def size @size end |
#small_comparator ⇒ Object
Returns the value of attribute small_comparator.
79 80 81 |
# File 'lib/s3sync/sync.rb', line 79 def small_comparator @small_comparator end |