Class: TransferablePicture
- Inherits:
-
Object
- Object
- TransferablePicture
- Defined in:
- lib/georgia/assets/transferable_picture.rb
Instance Attribute Summary collapse
-
#asset ⇒ Object
Returns the value of attribute asset.
-
#container ⇒ Object
Returns the value of attribute container.
Instance Method Summary collapse
-
#initialize(asset, container) ⇒ TransferablePicture
constructor
A new instance of TransferablePicture.
- #process ⇒ Object
Constructor Details
#initialize(asset, container) ⇒ TransferablePicture
Returns a new instance of TransferablePicture.
5 6 7 8 |
# File 'lib/georgia/assets/transferable_picture.rb', line 5 def initialize asset, container @asset = asset @container = container end |
Instance Attribute Details
#asset ⇒ Object
Returns the value of attribute asset.
3 4 5 |
# File 'lib/georgia/assets/transferable_picture.rb', line 3 def asset @asset end |
#container ⇒ Object
Returns the value of attribute container.
3 4 5 |
# File 'lib/georgia/assets/transferable_picture.rb', line 3 def container @container end |
Instance Method Details
#process ⇒ Object
10 11 12 13 |
# File 'lib/georgia/assets/transferable_picture.rb', line 10 def process copy_file recreate_versions! end |