Class: WoopleTheme::VideoPresenter

Inherits:
ExplicitDelegator show all
Defined in:
app/presenters/woople_theme/video_presenter.rb

Instance Method Summary collapse

Methods inherited from ExplicitDelegator

enforce_definitions, #enforced_methods, #ensure_defined, #initialize

Constructor Details

This class inherits a constructor from ExplicitDelegator

Instance Method Details

#disliked_cssObject



15
16
17
# File 'app/presenters/woople_theme/video_presenter.rb', line 15

def disliked_css
  liked? == false ? 'active' : nil
end

#favorite_css_classObject



7
8
9
# File 'app/presenters/woople_theme/video_presenter.rb', line 7

def favorite_css_class
  favorite? ? 'active' : ''
end

#liked_cssObject



11
12
13
# File 'app/presenters/woople_theme/video_presenter.rb', line 11

def liked_css
  liked? == true ? 'active' : nil
end