Class: MTP::Association::GenericFolder
- Inherits:
-
MTP::Association
- Object
- MTP::Association
- MTP::Association::GenericFolder
- Defined in:
- lib/mtp/association.rb
Constant Summary
Constants inherited from MTP::Association
Instance Attribute Summary
Attributes inherited from MTP::Association
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.load(desc) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/mtp/association.rb', line 32 def self.load(desc) assoc = GenericFolder.new assoc.instance_eval do @bidirectional = !desc.zero? end assoc end |
Instance Method Details
#bidirectional? ⇒ Boolean
40 41 42 |
# File 'lib/mtp/association.rb', line 40 def bidirectional? @bidirectional end |
#desc ⇒ Object
44 45 46 |
# File 'lib/mtp/association.rb', line 44 def desc (!@birirectional).to_i end |