Class: Arssene::ChannelPresenter
- Inherits:
-
Object
- Object
- Arssene::ChannelPresenter
- Defined in:
- lib/arssene/lib/presenters/channel_presenter.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
Instance Method Summary collapse
- #filter(options) ⇒ Object
-
#initialize(channel) ⇒ ChannelPresenter
constructor
A new instance of ChannelPresenter.
Constructor Details
#initialize(channel) ⇒ ChannelPresenter
Returns a new instance of ChannelPresenter.
7 8 9 |
# File 'lib/arssene/lib/presenters/channel_presenter.rb', line 7 def initialize(channel) @channel = channel end |
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel.
5 6 7 |
# File 'lib/arssene/lib/presenters/channel_presenter.rb', line 5 def channel @channel end |
Instance Method Details
#filter(options) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/arssene/lib/presenters/channel_presenter.rb', line 11 def filter() return channel unless filter_by_ignore() if [:ignore] filter_by_date() if [:from_date] limit() if [:limit] channel end |