class Inkcite::Renderer::Social::Instagram

Public Class Methods

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

Protected Instance Methods

get_share_href(url, text, opts, ctx) click to toggle source
# File lib/inkcite/renderer/social.rb, line 67
def get_share_href url, text, opts, ctx

  val = "https://www.instagram.com"

  username = opts[:username]
  val << "/#{username}" unless username.blank?

  val
end