class JustShare::Vk

Public Instance Methods

setup_attrs() click to toggle source
# File lib/just_share/vk.rb, line 2
def setup_attrs
  # Base URL
  self.domain='http://vk.com'
  self.path='share.php'

  # Params (only the link is working, the others are deprecated for the sharer.php & won't work)
  url_param = "url=#{self.link}"

  # build the params
  self.params = "#{url_param}"
end