Class: JustShare::Blogger

Inherits:
SocialLinker show all
Defined in:
lib/just_share/blogger.rb

Instance Attribute Summary

Attributes inherited from SocialLinker

#aux_link, #domain, #hash_tags, #image_url, #message, #params, #path, #title, #via

Instance Method Summary collapse

Methods inherited from SocialLinker

#get_post_link, #initialize, #link

Constructor Details

This class inherits a constructor from JustShare::SocialLinker

Instance Method Details

#setup_attrsObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/just_share/blogger.rb', line 2

def setup_attrs
  # Base URL
  self.domain='https://www.blogger.com'
  self.path='blog_this.pyra'

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

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