Class: GallerySync::DropboxPhoto
- Defined in:
- lib/gallery_sync/gallery_sync.rb
Instance Attribute Summary
Attributes inherited from Photo
Instance Method Summary collapse
- #db_path ⇒ Object
- #file ⇒ Object
-
#initialize(album, name, dropbox_path, gallery) ⇒ DropboxPhoto
constructor
A new instance of DropboxPhoto.
Methods inherited from Photo
Constructor Details
#initialize(album, name, dropbox_path, gallery) ⇒ DropboxPhoto
Returns a new instance of DropboxPhoto.
266 267 268 269 270 |
# File 'lib/gallery_sync/gallery_sync.rb', line 266 def initialize(album,name,dropbox_path,gallery) super(album,name) @dropbox_path = dropbox_path @gallery = gallery end |
Instance Method Details
#db_path ⇒ Object
272 273 274 |
# File 'lib/gallery_sync/gallery_sync.rb', line 272 def db_path @dropbox_path end |
#file ⇒ Object
276 277 278 279 |
# File 'lib/gallery_sync/gallery_sync.rb', line 276 def file file = @gallery.client.get_file(@dropbox_path) return file end |