class Epuber::OpfFile::ManifestItem
Attributes
@return [String]
@return [String]
@return [String]
@return [String, nil]
Public Class Methods
Source
# File lib/epuber/from_file/opf_file.rb, line 41 def self.from_node(node) new(node['id'], node['href'], node['media-type'], node['properties']) end
@param [Nokogiri::XML::Node] node
@return [ManifestItem]
Source
# File lib/epuber/from_file/opf_file.rb, line 22 def initialize(id, href, media_type, properties) @id = id @href = href @media_type = media_type @properties = properties end
Public Instance Methods
Source
# File lib/epuber/from_file/opf_file.rb, line 33 def ==(other) @id == other.id end
@param [ManifestItem] other
@return [Boolean]