lib/frameit/offsets.rb in frameit-2.7.0 vs lib/frameit/offsets.rb in frameit-2.8.0
- old
+ new
@@ -1,10 +1,9 @@
module Frameit
class Offsets
# Returns the image offset needed for a certain device type for a given orientation
# uses deliver to detect the screen size
- # rubocop:disable Metrics/MethodLength
def self.image_offset(screenshot)
size = Deliver::AppScreenshot::ScreenSize
case screenshot.orientation_name
when Orientation::PORTRAIT
case screenshot.screen_size
@@ -86,8 +85,7 @@
'width' => 1075
}
end
end
end
- # rubocop:enable Metrics/MethodLength
end
end