Class: SocialConnections::AggregatedActivities

Inherits:
Object
  • Object
show all
Defined in:
lib/social_connections/social_aggregator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(activities) ⇒ AggregatedActivities

Returns a new instance of AggregatedActivities.



5
6
7
8
# File 'lib/social_connections/social_aggregator.rb', line 5

def initialize(activities)
  self.activities = activities
  self.by_verb = activities_by_verb(activities)
end

Instance Attribute Details

#activitiesObject

Returns the value of attribute activities.



4
5
6
# File 'lib/social_connections/social_aggregator.rb', line 4

def activities
  @activities
end

#by_verbObject

Returns the value of attribute by_verb.



4
5
6
# File 'lib/social_connections/social_aggregator.rb', line 4

def by_verb
  @by_verb
end