Module: Lifestreamable::Lifestreamed::LifestreamedInstanceMethods

Defined in:
lib/lifestreamable/lifestreamed.rb

Instance Method Summary collapse

Instance Method Details

#group_lifestream(group, *options) ⇒ Object



62
63
64
65
66
# File 'lib/lifestreamable/lifestreamed.rb', line 62

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

Returns the lifestream values on the



56
57
58
59
60
# File 'lib/lifestreamable/lifestreamed.rb', line 56

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



51
52
53
# File 'lib/lifestreamable/lifestreamed.rb', line 51

def lifestreamed_options
  self.class.lifestreamed_options
end