Class: Irelia::Avatar::Component
- Defined in:
- app/components/irelia/avatar/component.rb
Instance Method Summary collapse
Methods inherited from Component
#add_css_classes, after_initialize, #html_options, inherited, #initialize, run_after_initialize_hooks
Constructor Details
This class inherits a constructor from Irelia::Component
Instance Method Details
#image_url ⇒ Object
6 7 8 |
# File 'app/components/irelia/avatar/component.rb', line 6 def image_url content || src end |
#variants ⇒ Object
10 11 12 13 14 15 |
# File 'app/components/irelia/avatar/component.rb', line 10 def variants class_names( "irelia-avatar", "irelia-avatar--default": variant == :default ) end |