Class: Nokaya::Deviantart
Instance Attribute Summary
Attributes inherited from Basic
#args, #file_name, #image_url, #options, #path, #type
Instance Method Summary collapse
-
#initialize(args, options = {}) ⇒ Deviantart
constructor
A new instance of Deviantart.
Methods inherited from Basic
Constructor Details
#initialize(args, options = {}) ⇒ Deviantart
Returns a new instance of Deviantart.
6 7 8 9 10 11 12 13 14 |
# File 'lib/nokaya/deviantart.rb', line 6 def initialize args, = {} super(args, ) @type = :deviantart parsed = self.parse(args[0]) @image_url = album(parsed).compact @author = () @path = "#{@path}/deviantart-#{@author}-#{@workers.timed}" @file_name = name() end |