Class: Descriptor
- Inherits:
-
Object
- Object
- Descriptor
- Defined in:
- lib/refworks/descriptors/descriptor.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#nRefs ⇒ Object
readonly
Returns the value of attribute nRefs.
Instance Method Summary collapse
-
#initialize(rawdesc) ⇒ Descriptor
constructor
A new instance of Descriptor.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/refworks/descriptors/descriptor.rb', line 2 def name @name end |
#nRefs ⇒ Object (readonly)
Returns the value of attribute nRefs.
2 3 4 |
# File 'lib/refworks/descriptors/descriptor.rb', line 2 def nRefs @nRefs end |