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