Sha256: be93d639623f0215e2461f4269e12d7f564e4cee256708c3b3b2d0210775424f
Contents?: true
Size: 475 Bytes
Versions: 5
Compression:
Stored size: 475 Bytes
Contents
require "app_store/base" require "app_store/image" class AppStore::Artwork < AppStore::Base attr_reader :default, :thumbnail plist :mapping => { 'image-type' => :image_type } def is_icon? image_type == 'software-icon' end protected def custom_init_from_plist(plist) @default = AppStore::Image.new(:plist => plist['default']) if plist['default'] @thumbnail = AppStore::Image.new(:plist => plist['thumbnail']) if plist['thumbnail'] end end
Version data entries
5 entries across 5 versions & 1 rubygems