Class: SocialButtons::Pinit::Scripter

Inherits:
Scripter
  • Object
show all
Defined in:
lib/social_buttons/view_helpers/pinit.rb

Instance Attribute Summary

Attributes inherited from Scripter

#caller, #options

Instance Method Summary collapse

Methods inherited from Scripter

#initialize

Constructor Details

This class inherits a constructor from SocialButtons::Scripter

Instance Method Details

#pinit_jsObject



43
44
45
# File 'lib/social_buttons/view_helpers/pinit.rb', line 43

def pinit_js
  "https://assets.pinterest.com/js/pinit.js"
end

#scriptObject



37
38
39
40
41
# File 'lib/social_buttons/view_helpers/pinit.rb', line 37

def script
  return empty_content if widgetized? :pinit
  widgetized! :pinit        
  "<script src=#{pinit_js} type='text/javascript'></script>".html_safe
end