Class: SocialUrl::Google

Inherits:
Object
  • Object
show all
Defined in:
lib/social_url/google.rb

Constant Summary collapse

PARAMS =
[:url]

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Google

Returns a new instance of Google.



5
6
7
# File 'lib/social_url/google.rb', line 5

def initialize(options)
  @params = SocialUrl.filtered_params(options, PARAMS)
end

Instance Method Details

#urlObject



9
10
11
# File 'lib/social_url/google.rb', line 9

def url
  "https://plus.google.com/share?#{@params}"
end