Class: Nokaya::Favd
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 = {}) ⇒ Favd
constructor
A new instance of Favd.
Methods inherited from Basic
Constructor Details
#initialize(args, options = {}) ⇒ Favd
Returns a new instance of Favd.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nokaya/favd.rb', line 8 def initialize args, = {} super(args, ) url = if [:post] "http://pic.favd.net/#{args[0]}" else args[0] end @type = :favd parsed = parse(url) @urls = get_favd(parsed).compact @author = (parsed) @filenames = name_files() end |
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
6 7 8 |
# File 'lib/nokaya/favd.rb', line 6 def @author end |