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

#storiesObject



7
8
9
# File 'lib/radarb/collectable.rb', line 7

def stories
  find_by_type('Story')
end

#tweetsObject



3
4
5
# File 'lib/radarb/collectable.rb', line 3

def tweets
  find_by_type('Tweet')
end