Class: Author

Inherits:
Object
  • Object
show all
Defined in:
lib/refworks/authors/author.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rawauthor) ⇒ Author

Returns a new instance of Author.



5
6
7
8
# File 'lib/refworks/authors/author.rb', line 5

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/refworks/authors/author.rb', line 3

def name
  @name
end

#nRefsObject (readonly)

Returns the value of attribute nRefs.



3
4
5
# File 'lib/refworks/authors/author.rb', line 3

def nRefs
  @nRefs
end