Class: Folder

Inherits:
Object
  • Object
show all
Defined in:
lib/refworks/folders/folder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/refworks/folders/folder.rb', line 2

def name
  @name
end

#nRefsObject (readonly)

Returns the value of attribute nRefs.



2
3
4
# File 'lib/refworks/folders/folder.rb', line 2

def nRefs
  @nRefs
end

#typeObject (readonly)

Returns the value of attribute type.



2
3
4
# File 'lib/refworks/folders/folder.rb', line 2

def type
  @type
end