class Inkcite::Renderer::Social::Facebook

Public Class Methods

new() click to toggle source
Calls superclass method Inkcite::Renderer::Social::new
# File lib/inkcite/renderer/social.rb, line 7
def initialize
  super(:src => 'facebook.png', :alt => 'Facebook', :cta => 'Share')
end

Protected Instance Methods

get_share_href(url, text, opts, ctx) click to toggle source
# File lib/inkcite/renderer/social.rb, line 13
def get_share_href url, text, opts, ctx
  %Q(https://www.facebook.com/sharer/sharer.php?u=#{url}&t=#{text})
end