Module: Lifestreamable::Lifestreamed::LifestreamedInstanceMethods

Defined in:
lib/lifestreamable/lifestreamed.rb

Instance Method Summary collapse

Instance Method Details

#group_lifestream(group, *options) ⇒ Object



32
33
34
35
36
# File 'lib/lifestreamable/lifestreamed.rb', line 32

def group_lifestream(group, *options)
  opt, do_filter = get_options_and_filter(options[0])
  lifestream = Lifestreamable::Lifestream.find_lifestream_for_group(self, group, opt)
  do_filter ? filter(lifestream) : lifestream
end

#lifestream(*options) ⇒ Object



26
27
28
29
30
# File 'lib/lifestreamable/lifestreamed.rb', line 26

def lifestream(*options)
  opt, do_filter = get_options_and_filter(options[0])
  lifestream = Lifestreamable::Lifestream.find_lifestream_for_owner(self, opt) 
  do_filter ? filter(lifestream) : lifestream
end

#lifestreamed_optionsObject



22
23
24
# File 'lib/lifestreamable/lifestreamed.rb', line 22

def lifestreamed_options
  self.class.lifestreamed_options
end