Class: MostPopular::Trending::ViewedStory
- Inherits:
-
Object
- Object
- MostPopular::Trending::ViewedStory
- Defined in:
- lib/most-popular/viewed_story.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
-
#views ⇒ Object
readonly
Returns the value of attribute views.
Instance Method Summary collapse
-
#initialize(uri, views) ⇒ ViewedStory
constructor
A new instance of ViewedStory.
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
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
4 5 6 |
# File 'lib/most-popular/viewed_story.rb', line 4 def uri @uri end |
#views ⇒ Object (readonly)
Returns the value of attribute views.
4 5 6 |
# File 'lib/most-popular/viewed_story.rb', line 4 def views @views end |