Skip to content

Instantly share code, notes, and snippets.

View m-k's full-sized avatar

Maksym Khukhrianskyi m-k

View GitHub Profile
---
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:
class IssuesPresenter
attr_reader :issues, :filters
def initialize(issues, filters)
@issues, @filters = issues, filters
end
def has_selected_filters?
filter.any?
end
class DiscussionViewObject
attr_reader :discussion
delegate :name, :created_at, to: :discussion
def initialize(discussion)
@discussion = discussion
end
def name_with_time