Class: Media::Preset::Apple

Inherits:
Base
  • Object
show all
Defined in:
lib/media/preset/apple.rb

Class Method Summary collapse

Methods inherited from Base

#call, #initialize, preset?, #to_s

Constructor Details

This class inherits a constructor from Media::Preset::Base

Class Method Details

.presetsObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/media/preset/apple.rb', line 7

def self.presets
  {
    ipod: {height: 320, width: 480},
    ipod_touch: {height: 480, width: 640},
    iphone: {height: 480, width: 640},
    ipod_touch_4: {height: 640, width: 960},
    iphone_4: {height: 640, width: 960},
    iphone_5: {height: 1080, width: 1920},
    ipad_3: {height: 1080, width: 1920},
    ipad: {height: 1024, height: 768},
    apple_universal: {height: 720, width: 1280},
    apple_tv: {height: 720, width: 1280}
  }
end