Class: FacebookSocialPlugins::Plugin::Comments
- Defined in:
- lib/facebook-social_plugins/plugin/comments.rb
Instance Attribute Summary
Attributes inherited from Social
Attributes inherited from UiHelper
Instance Method Summary collapse
-
#attributes ⇒ Object
href - the URL for this Comments plugin.
-
#initialize(options = {}) ⇒ Comments
constructor
A new instance of Comments.
- #plugin_class ⇒ Object
Methods inherited from Social
Constructor Details
#initialize(options = {}) ⇒ Comments
Returns a new instance of Comments.
3 4 5 |
# File 'lib/facebook-social_plugins/plugin/comments.rb', line 3 def initialize = {} super end |
Instance Method Details
#attributes ⇒ Object
href - the URL for this Comments plugin. News feed stories on Facebook will link to this URL. width - the width of the plugin in pixels. Minimum recommended width: 400px. colorscheme - the color scheme for the plugin. Options: ‘light’, ‘dark’ num_posts - the number of comments to show by default. Default: 10. Minimum: 1 mobile - whether to show the mobile-optimized version. Default: auto-detect.
16 17 18 |
# File 'lib/facebook-social_plugins/plugin/comments.rb', line 16 def attributes super.merge(:href => :string, :num_posts => :integer, :mobile => :boolean, :width => :integer) end |
#plugin_class ⇒ Object
7 8 9 |
# File 'lib/facebook-social_plugins/plugin/comments.rb', line 7 def plugin_class 'fb-comments' end |