Class: Cinii::Item::Author
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Attributes inherited from Base
#date, #id, #link, #see_also, #title, #type
Instance Method Summary collapse
-
#initialize(item) ⇒ Author
constructor
A new instance of Author.
Constructor Details
#initialize(item) ⇒ Author
Returns a new instance of Author.
8 9 10 11 12 13 |
# File 'lib/cinii/item/author.rb', line 8 def initialize(item) @description = item['description'] @subject = item['dc:subject'] super(item) end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/cinii/item/author.rb', line 6 def description @description end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
6 7 8 |
# File 'lib/cinii/item/author.rb', line 6 def subject @subject end |