class Nokaya::Instagram
Attributes
Public Class Methods
new(args, options = {})
click to toggle source
Calls superclass method
Nokaya::Basic::new
# File lib/nokaya/instagram.rb, line 8 def initialize args, options = {} super(args, options) @type = :instagram parsed = parse(args[0]) @urls = [get_basic(parsed)].compact @author = author_name(parsed) @filenames = name_files() end
Private Instance Methods
name_files()
click to toggle source
# File lib/nokaya/instagram.rb, line 24 def name_files unless @urls.empty? @name ||= @workers.sanitize(@author) ["#{@type.to_s}-#{@workers.sanitize(@author)}-#{@workers.timed}.jpg"] else [] end end