Module: Kublog::Network::Facebook::InstanceMethods

Defined in:
lib/kublog/network/facebook.rb

Instance Method Summary collapse

Instance Method Details

#default_facebookObject

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_facebookObject

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

Returns:

  • (Boolean)


25
26
27
# File 'lib/kublog/network/facebook.rb', line 25

def facebook?
  self.kind == 'facebook'
end