Class: Nokaya::AppStore
Overview
Inspired by Brett Terpstra
Instance Attribute Summary collapse
-
#appname ⇒ Object
Returns the value of attribute appname.
Attributes inherited from Basic
#args, #file_name, #image_url, #options, #path, #type
Instance Method Summary collapse
-
#initialize(args, options = {}) ⇒ AppStore
constructor
A new instance of AppStore.
Methods inherited from Apple
Methods inherited from Basic
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, = {} super(args, ) @type = :appstore @appname = @workers.sanitize(args.join('_')) @image_url = [grab_small(args), grab_big(args)].compact find_screenshots(args) @path = "#{@path}/appstore-#{@appname}-#{@workers.timed}" @file_name = name() remove_instance_variable(:@res) end |
Instance Attribute Details
#appname ⇒ Object
Returns the value of attribute appname.
8 9 10 |
# File 'lib/nokaya/appstore.rb', line 8 def appname @appname end |