Class: AblyUi::Core::Slider::Slide

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/ably_ui/core/slider/slider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(classes: '') ⇒ Slide

Returns a new instance of Slide.



26
27
28
# File 'lib/ably_ui/core/slider/slider.rb', line 26

def initialize(classes: '')
  @classes = classes
end

Instance Attribute Details

#classesObject (readonly)

Returns the value of attribute classes.



24
25
26
# File 'lib/ably_ui/core/slider/slider.rb', line 24

def classes
  @classes
end

Instance Method Details

#callObject



30
31
32
33
34
# File 'lib/ably_ui/core/slider/slider.rb', line 30

def call
  tag.li class: classes, data: { id: 'slider-slide' } do
    content
  end
end