Sha256: 00ffa9f466619ab78590414542225ad739b3de1887d5c3a613f8938193e86e64
Contents?: true
Size: 312 Bytes
Versions: 3
Compression:
Stored size: 312 Bytes
Contents
module EPUBInfo module Models class Person attr_accessor :name, :file_as, :role def initialize(node) self.name = node.content self.file_as = node.attribute('file-as').content rescue nil self.role = node.attribute('role').content rescue nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
epubinfo-0.2.1 | lib/epubinfo/models/person.rb |
epubinfo-0.2.0 | lib/epubinfo/models/person.rb |
epubinfo-0.1.0 | lib/epubinfo/models/person.rb |