- Git: https://github.com/SixArm/sixarm_ruby_blob
- Doc: http://sixarm.com/sixarm_ruby_blob/doc
- Gem: https://rubygems.org/gems/sixarm_ruby_blob
- Contact: Joel Parker Henderson, joel@sixarm.com
- Project: changes, license, contributing.
This is an abstract base class to help us model a blob of data.
We use this class as our parent class for image files, music files, and video files.
A blob provides a few basic capabilities:
- Access a blob via a file path on the local filesystem.
- Access a blob via a URI.
- Upload a blob by using a typical web browser form.
For docs go to http://sixarm.com/sixarm_ruby_blob/doc
Want to help? We're happy to get pull requests.
To install this gem in your shell or terminal:
gem install sixarm_ruby_blob
To add this gem to your Gemfile:
gem 'sixarm_ruby_blob'
To require the gem in your code:
require 'sixarm_ruby_blob'
Create a blob:
require "sixarm_ruby_blob"
blob = Blob.new(dir: "/my/photos", name: "photo.jpb")
Locate the blob as a file and as a URI:
blob.file_path #=> "/my/photos/photo.jpg"
blob.uri_path #=> "http://example.com/my/photos/photo.jpg"