Class: SocialFeedAgregator::Feed
- Inherits:
-
Object
- Object
- SocialFeedAgregator::Feed
- Defined in:
- lib/social_feed_agregator/feed.rb
Instance Attribute Summary collapse
-
#caption ⇒ Object
:facebook, :twitter or :linkedin.
-
#created_at ⇒ Object
:facebook, :twitter or :linkedin.
-
#description ⇒ Object
:facebook, :twitter or :linkedin.
-
#feed_id ⇒ Object
:facebook, :twitter or :linkedin.
-
#feed_type ⇒ Object
:facebook, :twitter or :linkedin.
-
#link ⇒ Object
:facebook, :twitter or :linkedin.
-
#message ⇒ Object
:facebook, :twitter or :linkedin.
-
#name ⇒ Object
:facebook, :twitter or :linkedin.
-
#permalink ⇒ Object
:facebook, :twitter or :linkedin.
-
#picture_url ⇒ Object
:facebook, :twitter or :linkedin.
-
#type ⇒ Object
:facebook, :twitter or :linkedin.
-
#user_id ⇒ Object
:facebook, :twitter or :linkedin.
-
#user_name ⇒ Object
:facebook, :twitter or :linkedin.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Feed
constructor
A new instance of Feed.
Constructor Details
#initialize(options = {}) ⇒ Feed
Returns a new instance of Feed.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/social_feed_agregator/feed.rb', line 19 def initialize(={}) @feed_type = [:feed_type] @feed_id = [:feed_id] @user_id = [:user_id] @user_name = [:user_name] @permalink = [:permalink] @description = [:description] @picture_url = [:picture_url] @name = [:name] @link = [:link] # @story = options[:story] @message = [:message] @caption = [:caption] @created_at = [:created_at] @type = [:type] end |
Instance Attribute Details
#caption ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def @caption end |
#created_at ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def created_at @created_at end |
#description ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def description @description end |
#feed_id ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def feed_id @feed_id end |
#feed_type ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def feed_type @feed_type end |
#link ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def link @link end |
#message ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def @message end |
#name ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def name @name end |
#permalink ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def permalink @permalink end |
#picture_url ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def picture_url @picture_url end |
#type ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def type @type end |
#user_id ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def user_id @user_id end |
#user_name ⇒ Object
:facebook, :twitter or :linkedin
4 5 6 |
# File 'lib/social_feed_agregator/feed.rb', line 4 def user_name @user_name end |