Sha256: b6d52e66627eaa978c2d12a507a689a677ac31455b420d6e59788ba15678a052

Contents?: true

Size: 589 Bytes

Versions: 6

Compression:

Stored size: 589 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        class Avatar < EventBase
          include Mixins::Tooltips

          attr_accessor :avatar, :color, :size, :position

          def initialize(**attribs_, &block)
            super(type: :avatar, **attribs_, &block)
            @avatar   = attribs.delete(:avatar)
            @color    = attribs.delete(:color)
            @size     = attribs.delete(:size){ :default }
            @position = Array(attribs.delete(:position)).compact
            expand!
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/dsl/components/avatar.rb
voom-presenters-2.1.0 lib/voom/presenters/dsl/components/avatar.rb
voom-presenters-2.0.3 lib/voom/presenters/dsl/components/avatar.rb
voom-presenters-2.0.2 lib/voom/presenters/dsl/components/avatar.rb
voom-presenters-2.0.1 lib/voom/presenters/dsl/components/avatar.rb
voom-presenters-2.0.0 lib/voom/presenters/dsl/components/avatar.rb