Class: Feed

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/feed.rb

Instance Method Summary collapse

Instance Method Details

#aggregate?Boolean

Is this an aggregate feed

Returns:

  • (Boolean)


17
18
19
# File 'app/models/feed.rb', line 17

def aggregate?
  added_count > 0 || updated_count > 0 || removed_count > 0
end

#dateObject

Used to group feeds by the day they occurred



12
13
14
# File 'app/models/feed.rb', line 12

def date
  updated_at.to_date.to_formatted_s(:long_ordinal)
end