Class: JustShare::Reddit
- Inherits:
-
SocialLinker
- Object
- SocialLinker
- JustShare::Reddit
- Defined in:
- lib/just_share/reddit.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_attrs ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/just_share/reddit.rb', line 2 def setup_attrs # Base URL self.domain='http://www.reddit.com' self.path='submit' # 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 |