Class: AppStore::Link

Inherits:
Base
  • Object
show all
Defined in:
lib/app_store/link.rb

Instance Attribute Summary

Attributes inherited from Base

#raw

Instance Method Summary collapse

Methods inherited from Base

#initialize, #store_front_name

Methods included from Helper::Plist

#plist

Constructor Details

This class inherits a constructor from AppStore::Base

Instance Method Details

#destinationObject


11
12
13
14
15
16
17
18
19
# File 'lib/app_store/link.rb', line 11

def destination
  @destination ||= case @item_type
  when 'software'
    AppStore::Application.new :plist => @client.get(@url)['item-metadata'],
                              :client => @client
  else
    raise 'unsupported'
  end
end