Class: Periodical

Inherits:
Object
  • Object
show all
Defined in:
lib/refworks/periodicals/periodical.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/refworks/periodicals/periodical.rb', line 2

def name
  @name
end

#nRefsObject (readonly)

Returns the value of attribute nRefs.



2
3
4
# File 'lib/refworks/periodicals/periodical.rb', line 2

def nRefs
  @nRefs
end