Class: Nokaya::ImgurAlbum
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
Attributes inherited from Basic
#args, #filenames, #name, #options, #path, #type, #urls
Instance Method Summary collapse
-
#initialize(args, options = {}) ⇒ ImgurAlbum
constructor
A new instance of ImgurAlbum.
Methods inherited from Basic
#get_basic, #name_files, #parse, #save
Constructor Details
#initialize(args, options = {}) ⇒ ImgurAlbum
Returns a new instance of ImgurAlbum.
8 9 10 11 12 13 14 15 16 |
# File 'lib/nokaya/imgur_album.rb', line 8 def initialize args, = {} super(args, ) @type = :imgur parsed = parse(args[0]) @author = (parsed) @urls = album(parsed) @path = "#{@path}/imgur-#{@author}-#{@workers.timed}" @filenames = name_files() end |
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
6 7 8 |
# File 'lib/nokaya/imgur_album.rb', line 6 def @author end |