Class: CoverComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- CoverComponent
- Defined in:
- app/components/cover_component.rb
Instance Method Summary collapse
-
#initialize(url: Tybo.configuration.cover_url) ⇒ CoverComponent
constructor
A new instance of CoverComponent.
Constructor Details
#initialize(url: Tybo.configuration.cover_url) ⇒ CoverComponent
Returns a new instance of CoverComponent.
2 3 4 |
# File 'app/components/cover_component.rb', line 2 def initialize(url: Tybo.configuration.cover_url) @url = url end |