Module: Radarb::Collectable
- Defined in:
- lib/radarb/collectable.rb
Instance Method Summary collapse
Instance Method Details
#find_by_type(type) ⇒ Object
11 12 13 |
# File 'lib/radarb/collectable.rb', line 11 def find_by_type(type) select{|item| item.type == type } end |
#stories ⇒ Object
7 8 9 |
# File 'lib/radarb/collectable.rb', line 7 def stories find_by_type('Story') end |
#tweets ⇒ Object
3 4 5 |
# File 'lib/radarb/collectable.rb', line 3 def tweets find_by_type('Tweet') end |