Class: ODisk::Info
- Inherits:
-
Object
- Object
- ODisk::Info
- Defined in:
- lib/odisk/info.rb
Constant Summary collapse
- NORMAL =
or nil
0
- ERROR =
1
- REMOTE =
2
- LOCAL =
3
Instance Attribute Summary collapse
-
#group ⇒ Object
Returns the value of attribute group.
-
#master ⇒ Object
Returns the value of attribute master.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#mtime ⇒ Object
Returns the value of attribute mtime.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#removed ⇒ Object
Returns the value of attribute removed.
Instance Method Summary collapse
- #eql?(o) ⇒ Boolean (also: #==)
-
#initialize(name) ⇒ Info
constructor
A new instance of Info.
Constructor Details
#initialize(name) ⇒ Info
Returns a new instance of Info.
18 19 20 21 22 23 24 25 26 |
# File 'lib/odisk/info.rb', line 18 def initialize(name) @name = name @owner = nil @group = nil @mode = 0 @mtime = nil @master = nil @removed = false end |
Instance Attribute Details
#group ⇒ Object
Returns the value of attribute group.
12 13 14 |
# File 'lib/odisk/info.rb', line 12 def group @group end |
#master ⇒ Object
Returns the value of attribute master.
15 16 17 |
# File 'lib/odisk/info.rb', line 15 def master @master end |
#mode ⇒ Object
Returns the value of attribute mode.
13 14 15 |
# File 'lib/odisk/info.rb', line 13 def mode @mode end |
#mtime ⇒ Object
Returns the value of attribute mtime.
14 15 16 |
# File 'lib/odisk/info.rb', line 14 def mtime @mtime end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/odisk/info.rb', line 10 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
11 12 13 |
# File 'lib/odisk/info.rb', line 11 def owner @owner end |
#removed ⇒ Object
Returns the value of attribute removed.
16 17 18 |
# File 'lib/odisk/info.rb', line 16 def removed @removed end |
Instance Method Details
#eql?(o) ⇒ Boolean Also known as: ==
28 29 30 31 32 33 34 35 36 |
# File 'lib/odisk/info.rb', line 28 def eql?(o) return false unless o.class == self.class # don't check master flag (@name == o.name && @owner == o.owner && (@group == o.group || $group_tolerant) && @mode == o.mode && @removed == o.removed) end |