Class: Cinii::Item::Author

Inherits:
Base
  • Object
show all
Defined in:
lib/cinii/item/author.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#date, #id, #link, #see_also, #title, #type

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/cinii/item/author.rb', line 6

def description
  @description
end

#subjectObject (readonly)

Returns the value of attribute subject.



6
7
8
# File 'lib/cinii/item/author.rb', line 6

def subject
  @subject
end