Class: Nokaya::Deviantart

Inherits:
Basic
  • Object
show all
Defined in:
lib/nokaya/deviantart.rb

Instance Attribute Summary

Attributes inherited from Basic

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

Instance Method Summary collapse

Methods inherited from Basic

#get_basic, #name_files, #parse, #save

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, options = {}
  super(args, options)
  @type = :deviantart
  parsed = parse(args[0])
  @urls = album(parsed).compact
  @author = author_name()
  @path = "#{@path}/deviantart-#{@author}-#{@workers.timed}"
  @filenames = name_files()
end