Class: Panda::Core::Admin::ContributorsSummaryComponent
- Inherits:
-
Base
- Object
- ViewComponent::Base
- Base
- Panda::Core::Admin::ContributorsSummaryComponent
- Includes:
- ActionView::Helpers::DateHelper, ActionView::Helpers::TextHelper
- Defined in:
- app/components/panda/core/admin/contributors_summary_component.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#contributors ⇒ Object
readonly
Returns the value of attribute contributors.
-
#count_label ⇒ Object
readonly
Returns the value of attribute count_label.
-
#heading ⇒ Object
readonly
Returns the value of attribute heading.
-
#last_updated_at ⇒ Object
readonly
Returns the value of attribute last_updated_at.
-
#total_count ⇒ Object
readonly
Returns the value of attribute total_count.
Instance Method Summary collapse
-
#initialize(contributors:, total_count:, last_updated_at:, count_label: "version", heading: "Contributors", **attrs) ⇒ ContributorsSummaryComponent
constructor
A new instance of ContributorsSummaryComponent.
Constructor Details
#initialize(contributors:, total_count:, last_updated_at:, count_label: "version", heading: "Contributors", **attrs) ⇒ ContributorsSummaryComponent
Returns a new instance of ContributorsSummaryComponent.
7 8 9 10 11 12 13 14 |
# File 'app/components/panda/core/admin/contributors_summary_component.rb', line 7 def initialize(contributors:, total_count:, last_updated_at:, count_label: "version", heading: "Contributors", **attrs) @contributors = contributors @total_count = total_count @count_label = count_label @last_updated_at = last_updated_at @heading = heading super(**attrs) end |
Instance Attribute Details
#contributors ⇒ Object (readonly)
Returns the value of attribute contributors.
16 17 18 |
# File 'app/components/panda/core/admin/contributors_summary_component.rb', line 16 def contributors @contributors end |
#count_label ⇒ Object (readonly)
Returns the value of attribute count_label.
16 17 18 |
# File 'app/components/panda/core/admin/contributors_summary_component.rb', line 16 def count_label @count_label end |
#heading ⇒ Object (readonly)
Returns the value of attribute heading.
16 17 18 |
# File 'app/components/panda/core/admin/contributors_summary_component.rb', line 16 def heading @heading end |
#last_updated_at ⇒ Object (readonly)
Returns the value of attribute last_updated_at.
16 17 18 |
# File 'app/components/panda/core/admin/contributors_summary_component.rb', line 16 def last_updated_at @last_updated_at end |
#total_count ⇒ Object (readonly)
Returns the value of attribute total_count.
16 17 18 |
# File 'app/components/panda/core/admin/contributors_summary_component.rb', line 16 def total_count @total_count end |