Class: Nokaya::ImageshackUser

Inherits:
Basic
  • Object
show all
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

Methods inherited from Basic

#get_basic, #parse, #save

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, options = {}
  super(args, options)
  @type = :imageshack
  parsed = self.parse(args[0])
  @image_url = album(parsed)
  @author = author()
  @path = "#{@path}/imageshack-#{@author}-#{@workers.timed}"
  @file_name = name()
end