Class: FacebookSocialPlugins::Plugin::RecommendationsBox
- Defined in:
- lib/facebook-social_plugins/plugin/recommendations_box.rb
Instance Attribute Summary
Attributes inherited from Social
Attributes inherited from UiHelper
Instance Method Summary collapse
-
#attributes ⇒ Object
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).
-
#initialize(options = {}) ⇒ RecommendationsBox
constructor
A new instance of RecommendationsBox.
- #plugin_class ⇒ Object
Methods inherited from Social
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 = {} super end |
Instance Method Details
#attributes ⇒ Object
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_class ⇒ Object
7 8 9 |
# File 'lib/facebook-social_plugins/plugin/recommendations_box.rb', line 7 def plugin_class 'fb-recommendations' end |