Class: MostPopular::Trending::ViewedStory

Inherits:
Object
  • Object
show all
Defined in:
lib/most-popular/viewed_story.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, views) ⇒ ViewedStory

Returns a new instance of ViewedStory.



6
7
8
9
# File 'lib/most-popular/viewed_story.rb', line 6

def initialize(uri,views)
  @uri = uri
  @views = views
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



4
5
6
# File 'lib/most-popular/viewed_story.rb', line 4

def uri
  @uri
end

#viewsObject (readonly)

Returns the value of attribute views.



4
5
6
# File 'lib/most-popular/viewed_story.rb', line 4

def views
  @views
end