Module: Scrapbooker::Services
- Includes:
- TweetMethods
- Defined in:
- lib/scrapbooker/services/services.rb,
lib/scrapbooker/services/twitter_feed.rb
Defined Under Namespace
Modules: TweetMethods
Classes: TwitterFeed
Instance Method Summary
collapse
#hashtags, #is_retweet, #links, #media, #mentions, #original_tweet
Instance Method Details
37
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/scrapbooker/services/twitter_feed.rb', line 37
def
results = Twitter.user_timeline(self..username, {
:include_rts => self..,
:include_replies => self..exclude_replies,
:include_entities => self..include_entities,
:count => self..count,
:trim_user => self..trim_user
})
for in results do
()
end
end
|
33
34
35
|
# File 'lib/scrapbooker/services/twitter_feed.rb', line 33
def
if self..active
end
|
50
51
52
53
54
55
56
57
58
|
# File 'lib/scrapbooker/services/twitter_feed.rb', line 50
def ()
self.create(
:source => 'twitter',
:source_id => .id,
:raw_feed => .instance_variable_get('@attrs').to_yaml,
:posted_at => .created_at,
:entry => .text
)
end
|
6
7
8
|
# File 'lib/scrapbooker/services/services.rb', line 6
def
@twitter_feed ||= TwitterFeed.new(self.configuration.)
end
|