Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 390 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 390 Bytes

Blinkbox::CommonMapping

Deals with blinkbox Books virtual URIs and acts like a local File object.

mapper = Mappings.new(
  "http://quatermaster.blinkbox.local",
  service_name: "Labs/example_code"
)

mapper.open("bbbmap::testfile:/some/path/component.epub") do |io|
  p io
  # This is a Tempfile object, interact with it as you wish!
end
# Temporary file has been deleted