Module: Kublog::Network::Facebook::InstanceMethods
- Defined in:
- lib/kublog/network/facebook.rb
Instance Method Summary collapse
-
#default_facebook ⇒ Object
Defaults to create a facebook wall post when creating a post off by default when editing a post.
-
#deliver_facebook ⇒ Object
Calls the appropriate processor on create callback Posts on the fan page wall a link to the post.
-
#facebook? ⇒ Boolean
Returns true when notification acts as facebook notification.
Instance Method Details
#default_facebook ⇒ Object
Defaults to create a facebook wall post when creating a post off by default when editing a post
20 21 22 |
# File 'lib/kublog/network/facebook.rb', line 20 def default_facebook post.new_record? end |
#deliver_facebook ⇒ Object
Calls the appropriate processor on create callback Posts on the fan page wall a link to the post
14 15 16 |
# File 'lib/kublog/network/facebook.rb', line 14 def deliver_facebook Processor.work(WallPost.new(self.url, self.content)) end |
#facebook? ⇒ Boolean
Returns true when notification acts as facebook notification
25 26 27 |
# File 'lib/kublog/network/facebook.rb', line 25 def facebook? self.kind == 'facebook' end |