class Epuber::OpfFile::ManifestItem

Attributes

href[RW]

@return [String]

id[RW]

@return [String]

media_type[RW]

@return [String]

properties[RW]

@return [String, nil]

Public Class Methods

from_node(node) click to toggle source

@param [Nokogiri::XML::Node] node

@return [ManifestItem]

# 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
new(id, href, media_type, properties) click to toggle 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

==(other) click to toggle source

@param [ManifestItem] other

@return [Boolean]

# File lib/epuber/from_file/opf_file.rb, line 33
def ==(other)
  @id == other.id
end