Module: Kublog::Network::Twitter::InstanceMethods
- Defined in:
- lib/kublog/network/twitter.rb
Instance Method Summary collapse
-
#default_twitter ⇒ Object
It’s activated by default when a new post is created but not when editing the post.
-
#deliver_twitter ⇒ Object
Calls processor to work on delivering the tweet.
-
#twitter? ⇒ Boolean
Returns true when the notification behaves like a twitter notification.
Instance Method Details
#default_twitter ⇒ Object
It’s activated by default when a new post is created but not when editing the post
19 20 21 |
# File 'lib/kublog/network/twitter.rb', line 19 def default_twitter post.new_record? end |
#deliver_twitter ⇒ Object
Calls processor to work on delivering the tweet
13 14 15 |
# File 'lib/kublog/network/twitter.rb', line 13 def deliver_twitter Processor.work(Tweet.new(self.content, self.url)) end |
#twitter? ⇒ Boolean
Returns true when the notification behaves like a twitter notification
25 26 27 |
# File 'lib/kublog/network/twitter.rb', line 25 def twitter? self.kind == 'twitter' end |