Class: Impulse::TimeZoneSelectComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/impulse/time_zone_select_component.rb

Defined Under Namespace

Classes: OptionStruct

Instance Method Summary collapse

Methods inherited from ApplicationComponent

generate_id

Methods included from Helpers::AttributesHelper

#merge_attributes

Constructor Details

#initialize(object_name, method_name, priority_zones = nil, selected: nil, default: nil, model: ::ActiveSupport::TimeZone, priority_zones_title: "Prioritized time zones", **system_args) ⇒ TimeZoneSelectComponent

Returns a new instance of TimeZoneSelectComponent.



7
8
9
10
11
12
13
14
15
16
# File 'app/components/impulse/time_zone_select_component.rb', line 7

def initialize(object_name, method_name, priority_zones = nil, selected: nil, default: nil, model: ::ActiveSupport::TimeZone, priority_zones_title: "Prioritized time zones", **system_args)
  @object_name = object_name
  @method_name = method_name
  @priority_zones = priority_zones
  @selected = selected
  @default = default
  @model = model
  @priority_zones_title = priority_zones_title
  @system_args = system_args
end