Class: Panda::Core::Admin::ContributorsSummaryComponent

Inherits:
Base
  • Object
show all
Includes:
ActionView::Helpers::DateHelper, ActionView::Helpers::TextHelper
Defined in:
app/components/panda/core/admin/contributors_summary_component.rb

Constant Summary

Constants inherited from Base

Base::TAILWIND_MERGER

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contributorsObject (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_labelObject (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

#headingObject (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_atObject (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_countObject (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