Class: AvatarComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AvatarComponent
- Defined in:
- lib/alveole/components/avatar_component.rb
Instance Method Summary collapse
-
#initialize(image:, url: nil, options: {}) ⇒ AvatarComponent
constructor
A new instance of AvatarComponent.
Constructor Details
#initialize(image:, url: nil, options: {}) ⇒ AvatarComponent
Returns a new instance of AvatarComponent.
2 3 4 5 6 7 8 |
# File 'lib/alveole/components/avatar_component.rb', line 2 def initialize(image:, url: nil, options: {}) super @image = image @url = url @options = end |