Class: Nokaya::AppStore

Inherits:
Apple show all
Defined in:
lib/nokaya/appstore.rb

Overview

Inspired by Brett Terpstra

Instance Attribute Summary collapse

Attributes inherited from Basic

#args, #filenames, #name, #options, #path, #type, #urls

Instance Method Summary collapse

Methods inherited from Apple

#create_url, #music_url

Methods inherited from Basic

#get_basic, #parse, #save

Constructor Details

#initialize(args, options = {}) ⇒ AppStore

Returns a new instance of AppStore.



10
11
12
13
14
15
16
17
18
19
# File 'lib/nokaya/appstore.rb', line 10

def initialize args, options = {}
  super(args, options)
  @type = :appstore
  @appname = @workers.sanitize(args.join('_'))
  @urls = [grab_small(args), grab_big(args)].compact
  find_screenshots(args)
  @path = "#{@path}/appstore-#{@appname}-#{@workers.timed}"
  @filenames = name_files()
  remove_instance_variable(:@res)
end

Instance Attribute Details

#appnameObject

Returns the value of attribute appname.



8
9
10
# File 'lib/nokaya/appstore.rb', line 8

def appname
  @appname
end