Class: SharingTags::Network::Facebook

Inherits:
SharingTags::Network show all
Defined in:
lib/sharing_tags/network/facebook.rb

Constant Summary

Constants inherited from SharingTags::Network

ATTRIBUTES, NETWORKS

Instance Attribute Summary

Attributes inherited from SharingTags::Network

#attributes, #name

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SharingTags::Network

#attributes_for, #clear!, #description, #digested_image_url, #image_url, #initialize, lists, #page_url, #share_url, #share_url_params, #title

Constructor Details

This class inherits a constructor from SharingTags::Network

Class Method Details

.available_attributesObject



4
5
6
# File 'lib/sharing_tags/network/facebook.rb', line 4

def self.available_attributes
  super + %i( app_id caption provider return_url)
end

Instance Method Details

#app_id(app_id = nil, &block) ⇒ Object



12
13
14
# File 'lib/sharing_tags/network/facebook.rb', line 12

def app_id(app_id = nil, &block)
  attributes[:app_id] = store_value(app_id, &block)
end

#caption(message = nil, &block) ⇒ Object



20
21
22
# File 'lib/sharing_tags/network/facebook.rb', line 20

def caption(message = nil, &block)
  attributes[:caption] = store_value(message, &block)
end

#provider(provider = 'auto', &block) ⇒ Object



8
9
10
# File 'lib/sharing_tags/network/facebook.rb', line 8

def provider(provider = 'auto', &block)
  attributes[:provider] = store_value(provider, &block)
end

#return_url(url = nil, &block) ⇒ Object



16
17
18
# File 'lib/sharing_tags/network/facebook.rb', line 16

def return_url(url = nil, &block)
  attributes[:return_url] = store_value(url, &block)
end