Class: Impulse::TimeZoneSelectComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Impulse::TimeZoneSelectComponent
- Defined in:
- app/components/impulse/time_zone_select_component.rb
Defined Under Namespace
Classes: OptionStruct
Instance Method Summary collapse
-
#initialize(object_name, method_name, priority_zones = nil, selected: nil, default: nil, model: ::ActiveSupport::TimeZone, priority_zones_title: "Prioritized time zones", **system_args) ⇒ TimeZoneSelectComponent
constructor
A new instance of TimeZoneSelectComponent.
Methods inherited from ApplicationComponent
Methods included from Helpers::AttributesHelper
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 |