Class: SocialSharePrivacy::Config::Services

Inherits:
Object
  • Object
show all
Includes:
Evaluatable, JSONable
Defined in:
lib/social_share_privacy.rb

Defined Under Namespace

Classes: Facebook, Gplus, Service, Twitter

Instance Method Summary collapse

Methods included from Evaluatable

#eval

Methods included from JSONable

#to_s

Instance Method Details

#facebook {|@facebook ||= Facebook.new| ... } ⇒ Object

Yields:



180
181
182
# File 'lib/social_share_privacy.rb', line 180

def facebook
  yield(@facebook ||= Facebook.new)
end

#gplus {|@gplus ||= Gplus.new| ... } ⇒ Object

Yields:



188
189
190
# File 'lib/social_share_privacy.rb', line 188

def gplus
  yield(@gplus ||= Gplus.new)
end

#twitter {|@twitter ||= Twitter.new| ... } ⇒ Object

Yields:



184
185
186
# File 'lib/social_share_privacy.rb', line 184

def twitter
  yield(@twitter ||= Twitter.new)
end