Class: Muvy::ImageFolder

Inherits:
Object
  • Object
show all
Defined in:
lib/muvy/imagefolder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(media, options) ⇒ ImageFolder

Returns a new instance of ImageFolder.



7
8
9
10
11
# File 'lib/muvy/imagefolder.rb', line 7

def initialize(media, options)
  @media = media
  @options = options
  @photos = add_photos
end

Instance Attribute Details

#mediaObject (readonly)

Returns the value of attribute media.



5
6
7
# File 'lib/muvy/imagefolder.rb', line 5

def media
  @media
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/muvy/imagefolder.rb', line 5

def options
  @options
end

#photosObject (readonly)

Returns the value of attribute photos.



5
6
7
# File 'lib/muvy/imagefolder.rb', line 5

def photos
  @photos
end

Instance Method Details

#runObject



13
14
15
16
# File 'lib/muvy/imagefolder.rb', line 13

def run
  average
  send_thumbs
end