Class: AvatarComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/alveole/components/avatar_component.rb

Instance Method Summary collapse

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 = options
end