This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
tt0111161: | |
:title: The Shawshank Redemption | |
:poster: https://m.media-amazon.com/images/M/MV5BMDFkYTc0MGEtZmNhMC00ZDIzLWFmNTEtODM1ZmRlYWMwMWFmXkEyXkFqcGdeQXVyMTMxODk2OTU@._V1_SX300.jpg | |
:plot: Chronicles the experiences of a formerly successful banker as a prisoner | |
in the gloomy jailhouse of Shawshank after being found guilty of a crime he did | |
not commit. The film portrays the man's unique way of dealing with his new, torturous | |
life; along the way he befriends a number of fellow prisoners, most notably a | |
wise long-term inmate named Red. | |
:categories: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IssuesPresenter | |
attr_reader :issues, :filters | |
def initialize(issues, filters) | |
@issues, @filters = issues, filters | |
end | |
def has_selected_filters? | |
filter.any? | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DiscussionViewObject | |
attr_reader :discussion | |
delegate :name, :created_at, to: :discussion | |
def initialize(discussion) | |
@discussion = discussion | |
end | |
def name_with_time |