Class: EPUB::OCF::Container::Rootfile

Inherits:
Object
  • Object
show all
Defined in:
lib/epub/ocf/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(full_path = nil, media_type = EPUB::MediaType::ROOTFILE) ⇒ Rootfile

Returns a new instance of Rootfile.

Parameters:

  • full_path (Addressable::URI|nil) (defaults to: nil)
  • media_type (String) (defaults to: EPUB::MediaType::ROOTFILE)


23
24
25
# File 'lib/epub/ocf/container.rb', line 23

def initialize(full_path=nil, media_type=EPUB::MediaType::ROOTFILE)
  @full_path, @media_type = full_path, media_type
end

Instance Attribute Details

#full_pathObject

Returns the value of attribute full_path.



18
19
20
# File 'lib/epub/ocf/container.rb', line 18

def full_path
  @full_path
end

#media_typeObject

Returns the value of attribute media_type.



18
19
20
# File 'lib/epub/ocf/container.rb', line 18

def media_type
  @media_type
end

#packageObject

Returns the value of attribute package.



18
19
20
# File 'lib/epub/ocf/container.rb', line 18

def package
  @package
end