Class: SocialFeedAgregator::Feed

Inherits:
Object
  • Object
show all
Defined in:
lib/social_feed_agregator/feed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options={}) 
  @feed_type = options[:feed_type]
  @feed_id =   options[:feed_id]

  @user_id =   options[:user_id]      
  @user_name = options[:user_name]
  
  @permalink =   options[:permalink]
  @description = options[:description]
  @picture_url = options[:picture_url]

  @name  = options[:name]
  @link  = options[:link]
  # @story = options[:story]
  @message = options[:message]
  @caption = options[:caption]
  @created_at = options[:created_at]
  @type = options[:type]              
end

Instance Attribute Details

#captionObject

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def caption
  @caption
end

#created_atObject

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def created_at
  @created_at
end

#descriptionObject

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def description
  @description
end

#feed_idObject

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def feed_id
  @feed_id
end

#feed_typeObject

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def feed_type
  @feed_type
end

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def link
  @link
end

#messageObject

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def message
  @message
end

#nameObject

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def name
  @name
end

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def permalink
  @permalink
end

#picture_urlObject

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def picture_url
  @picture_url
end

#typeObject

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def type
  @type
end

#user_idObject

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def user_id
  @user_id
end

#user_nameObject

:facebook, :twitter or :linkedin



4
5
6
# File 'lib/social_feed_agregator/feed.rb', line 4

def user_name
  @user_name
end