Class: FacebookSocialPlugins::Plugin::RecommendationsBox

Inherits:
Social
  • Object
show all
Defined in:
lib/facebook-social_plugins/plugin/recommendations_box.rb

Instance Attribute Summary

Attributes inherited from Social

#options

Attributes inherited from UiHelper

#html, #javascript

Instance Method Summary collapse

Methods inherited from Social

#render, #validate!

Constructor Details

#initialize(options = {}) ⇒ RecommendationsBox

Returns a new instance of RecommendationsBox.



3
4
5
# File 'lib/facebook-social_plugins/plugin/recommendations_box.rb', line 3

def initialize options = {}
	super
end

Instance Method Details

#attributesObject

max_age - a limit on recommendation and creation time of articles that are surfaced in

the plugins, the default is 0 (we don’t take age into account). 
Otherwise the valid values are 1-180, which specifies the number of days.


35
36
37
38
39
# File 'lib/facebook-social_plugins/plugin/recommendations_box.rb', line 35

def attributes
	super.merge(:site => :string, :action => :string, :app_id => :string, :height => :integer, 
		:header => :string, :linktarget => linktargets, :ref => :string, 
		:max_age => :integer, :width => :integer)
end

#plugin_classObject



7
8
9
# File 'lib/facebook-social_plugins/plugin/recommendations_box.rb', line 7

def plugin_class
	'fb-recommendations'
end