class Linksta::SaveLinks
Attributes
file_name[RW]
url[RW]
Public Class Methods
new(url, file_name)
click to toggle source
# File lib/linksta.rb, line 38 def initialize(url, file_name) @url = url @file_name = file_name end
Public Instance Methods
capture_links()
click to toggle source
# File lib/linksta.rb, line 47 def capture_links puts `phantomjs "#{js_file}" "#{url}" > "#{file_name}"` end
js_file()
click to toggle source
# File lib/linksta.rb, line 43 def js_file File.expand_path("linksta/javascript/snap.js", File.dirname(__FILE__)) end