Class: FacebookSocialPlugins::Plugin::SubscribeButton

Inherits:
Button show all
Defined in:
lib/facebook-social_plugins/plugin/subscribe_button.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 = {}) ⇒ SubscribeButton

Returns a new instance of SubscribeButton.



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

def initialize options = {}
	super
end

Instance Method Details

#attributesObject

show_faces - specifies whether to display profile photos below the button (standard layout only) colorscheme - the color scheme for the plugin. Options: ‘light’ (default) and ‘dark’ font - the font to display in the plugin. Options: ‘arial’, ‘lucida grande’, ‘segoe ui’, ‘tahoma’, ‘trebuchet ms’, ‘verdana’ width - the width of the plugin.



20
21
22
23
# File 'lib/facebook-social_plugins/plugin/subscribe_button.rb', line 20

def attributes
	super.merge(:href => :string, :layout => layouts, 
		:show_faces => :boolean, :width => :integer)
end

#plugin_classObject



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

def plugin_class
	'fb-subscribe'
end