Class: WhoNeedsWP::TwitterSearch
- Inherits:
-
TwitterSidebar
- Object
- Sidebar
- TwitterSidebar
- WhoNeedsWP::TwitterSearch
- Defined in:
- lib/who-needs-wp/sidebar/twitter.rb
Overview
A Sidebar component which displays a twitter search term
Instance Method Summary collapse
-
#initialize(term) ⇒ TwitterSearch
constructor
Create a new Twitter sidebar based on a search of “term”.
-
#render ⇒ Object
See Sidebar.render.
Methods inherited from Sidebar
Constructor Details
#initialize(term) ⇒ TwitterSearch
Create a new Twitter sidebar based on a search of “term”
57 58 59 60 61 |
# File 'lib/who-needs-wp/sidebar/twitter.rb', line 57 def initialize(term) super() @term = term end |
Instance Method Details
#render ⇒ Object
See Sidebar.render
64 65 66 67 68 69 |
# File 'lib/who-needs-wp/sidebar/twitter.rb', line 64 def render WhoNeedsWP::render_template("twitter", { :tweets => tweets, :feed_title => "Tweets for \"#{@term}\"" }) end |