lib/caboodle/kits/linkedin/linkedin.rb in caboodle-0.2.16 vs lib/caboodle/kits/linkedin/linkedin.rb in caboodle-0.2.18
- old
+ new
@@ -3,13 +3,13 @@
class LinkedinAPI < Weary::Base
attr_accessor :data
attr_accessor :full
def initialize
- @full = Caboodle.scrape(Caboodle::Site.linkedin_profile_url)
+ @full = Caboodle.scrape(Site.linkedin_profile_url)
@full.css('.showhide-link').each{|a| @full.delete(a)}
- @full = @full.css("#main").to_html.gsub("#{Caboodle::Site.linkedin_full_name}’s ","")
+ @full = @full.css("#main").to_html.gsub("#{Site.linkedin_full_name}’s ","")
end
def method_missing(method_name)
@data.send(method_name.to_sym)
end
end
@@ -23,10 +23,10 @@
haml :cv
end
required [:linkedin_full_name, :linkedin_profile_url]
- credit Caboodle::Site.linkedin_profile_url, "Linkedin profile"
+ credit linkedin_profile_url, "Linkedin profile"
add_sass ["linkedin"]
end
end
\ No newline at end of file