Class: Folder
- Inherits:
-
Object
- Object
- Folder
- Defined in:
- lib/refworks/folders/folder.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#nRefs ⇒ Object
readonly
Returns the value of attribute nRefs.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(rawfolder) ⇒ Folder
constructor
A new instance of Folder.
Constructor Details
#initialize(rawfolder) ⇒ Folder
Returns a new instance of Folder.
4 5 6 7 8 |
# File 'lib/refworks/folders/folder.rb', line 4 def initialize(rawfolder) @name = rawfolder["__content__"] @nRefs = rawfolder["nRefs"] @type = rawfolder["type"] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/refworks/folders/folder.rb', line 2 def name @name end |
#nRefs ⇒ Object (readonly)
Returns the value of attribute nRefs.
2 3 4 |
# File 'lib/refworks/folders/folder.rb', line 2 def nRefs @nRefs end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
2 3 4 |
# File 'lib/refworks/folders/folder.rb', line 2 def type @type end |