Class: Alchemy::Admin::Resource::AppliedFilter
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Alchemy::Admin::Resource::AppliedFilter
- Defined in:
- app/components/alchemy/admin/resource/applied_filter.rb
Instance Attribute Summary collapse
-
#applied_filter_label ⇒ Object
readonly
Returns the value of attribute applied_filter_label.
-
#applied_filter_value ⇒ Object
readonly
Returns the value of attribute applied_filter_value.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
Instance Method Summary collapse
-
#initialize(applied_filter_label:, link:, applied_filter_value: nil) ⇒ AppliedFilter
constructor
A new instance of AppliedFilter.
Constructor Details
#initialize(applied_filter_label:, link:, applied_filter_value: nil) ⇒ AppliedFilter
Returns a new instance of AppliedFilter.
21 22 23 24 25 |
# File 'app/components/alchemy/admin/resource/applied_filter.rb', line 21 def initialize(applied_filter_label:, link:, applied_filter_value: nil) @applied_filter_label = applied_filter_label @link = link @applied_filter_value = applied_filter_value end |
Instance Attribute Details
#applied_filter_label ⇒ Object (readonly)
Returns the value of attribute applied_filter_label.
7 8 9 |
# File 'app/components/alchemy/admin/resource/applied_filter.rb', line 7 def applied_filter_label @applied_filter_label end |
#applied_filter_value ⇒ Object (readonly)
Returns the value of attribute applied_filter_value.
7 8 9 |
# File 'app/components/alchemy/admin/resource/applied_filter.rb', line 7 def applied_filter_value @applied_filter_value end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
7 8 9 |
# File 'app/components/alchemy/admin/resource/applied_filter.rb', line 7 def link @link end |