Class: GallerySync::DropboxPhoto

Inherits:
Photo
  • Object
show all
Defined in:
lib/gallery_sync/gallery_sync.rb

Instance Attribute Summary

Attributes inherited from Photo

#album

Instance Method Summary collapse

Methods inherited from Photo

#==, #name, #path, #to_s

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_pathObject



272
273
274
# File 'lib/gallery_sync/gallery_sync.rb', line 272

def db_path
  @dropbox_path
end

#fileObject



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