Class: Avo::CoverPhoto

Inherits:
PhotoObject show all
Defined in:
lib/avo/cover_photo.rb

Instance Method Summary collapse

Methods inherited from PhotoObject

#initialize, #options, #present?, #value, #visible_in_current_view?, #visible_on, #visible_on_edit?, #visible_on_index?, #visible_on_new?, #visible_on_show?

Constructor Details

This class inherits a constructor from Avo::PhotoObject

Instance Method Details

#keyObject



5
# File 'lib/avo/cover_photo.rb', line 5

def key = :cover_photo

#sizeObject



7
8
9
# File 'lib/avo/cover_photo.rb', line 7

def size
  options.fetch(:size, :md)
end