Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 16 lines (11 sloc) 0.378 kb
bc581b2 @carols10cents Moving classes in lib each to their own class; I had some issues gett…
carols10cents authored
1 require_relative 'converts_subscriber_to_feed_data'
2d801e1 @seejee broke finger stuff out into its own class
seejee authored
2
4805968 @seejee moved feed creation logic into lib
seejee authored
3 class FindsOrCreatesFeeds
4 def self.find_or_create(subscribe_to)
b4c1307 @seejee created FeedData structure to clean up Feed creation
seejee authored
5 feed = Feed.first(:id => subscribe_to)
6
7 unless feed
8 feed_data = ConvertsSubscriberToFeedData.get_feed_data(subscribe_to)
2d801e1 @seejee broke finger stuff out into its own class
seejee authored
9 feed = Feed.first(:remote_url => feed_data.url) || Feed.create_from_feed_data(feed_data)
4805968 @seejee moved feed creation logic into lib
seejee authored
10 end
11
b4c1307 @seejee created FeedData structure to clean up Feed creation
seejee authored
12 feed
13 end
14 end
15
Something went wrong with that request. Please try again.