Class: Periodical
- Inherits:
-
Object
- Object
- Periodical
- Defined in:
- lib/refworks/periodicals/periodical.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(rawperiodical) ⇒ Periodical
constructor
A new instance of Periodical.
Constructor Details
#initialize(rawperiodical) ⇒ Periodical
Returns a new instance of Periodical.
4 5 6 7 |
# File 'lib/refworks/periodicals/periodical.rb', line 4 def initialize(rawperiodical) @name = rawperiodical["__content__"] @nRefs = rawperiodical["nRefs"] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/refworks/periodicals/periodical.rb', line 2 def name @name end |
#nRefs ⇒ Object (readonly)
Returns the value of attribute nRefs.
2 3 4 |
# File 'lib/refworks/periodicals/periodical.rb', line 2 def nRefs @nRefs end |