Class: Descriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/refworks/descriptors/descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rawdesc) ⇒ Descriptor

Returns a new instance of Descriptor.



4
5
6
7
# File 'lib/refworks/descriptors/descriptor.rb', line 4

def initialize(rawdesc)
  @name = rawdesc["__content__"]
  @nRefs = rawdesc["nRefs"]
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/refworks/descriptors/descriptor.rb', line 2

def name
  @name
end

#nRefsObject (readonly)

Returns the value of attribute nRefs.



2
3
4
# File 'lib/refworks/descriptors/descriptor.rb', line 2

def nRefs
  @nRefs
end