Class: TaoForm::Components::MomentPicker::Segments::MinuteSegmentComponent

Inherits:
Base
  • Object
show all
Defined in:
lib/tao_form/components/moment_picker/segments/minute_segment_component.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(view, options = {}) ⇒ MinuteSegmentComponent

Returns a new instance of MinuteSegmentComponent.



9
10
11
12
# File 'lib/tao_form/components/moment_picker/segments/minute_segment_component.rb', line 9

def initialize view, options = {}
  super view, options
  @step = options.delete(:step)
end

Instance Attribute Details

#stepObject (readonly)

Returns the value of attribute step.



7
8
9
# File 'lib/tao_form/components/moment_picker/segments/minute_segment_component.rb', line 7

def step
  @step
end

Class Method Details

.component_nameObject



14
15
16
# File 'lib/tao_form/components/moment_picker/segments/minute_segment_component.rb', line 14

def self.component_name
  :moment_picker_minute_segment
end