Class: Thron::Entity::Image
- Defined in:
- lib/thron/entity/image.rb
Constant Summary
Constants inherited from Base
Base::DATE_REGEX, Base::TIME_REGEX
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Image
constructor
A new instance of Image.
Methods inherited from Base
Constructor Details
#initialize(hash = {}) ⇒ Image
4 5 6 7 8 9 10 11 |
# File 'lib/thron/entity/image.rb', line 4 def initialize(hash = {}) super @path = hash.delete(:path) if valid_path? fetch_mime_type fetch_buffer end end |