Class: TwitterUserTimelinePortlet
- Inherits:
-
Portlet
- Object
- Portlet
- TwitterUserTimelinePortlet
- Defined in:
- app/portlets/twitter_user_timeline_portlet.rb
Instance Method Summary collapse
Instance Method Details
#render ⇒ Object
5 6 7 8 9 10 |
# File 'app/portlets/twitter_user_timeline_portlet.rb', line 5 def render raise ArgumentError, "You must specify a Twitter username to display tweets from." if self.username.blank? @title = self.name @items = Timeline.find_or_create_by_username(self.username).get_timeline(self.username, self.limit.to_i) end |