Class: Alchemy::Admin::Dashboard::Widgets::UsageWidget::Entry
- Inherits:
-
Data
- Object
- Data
- Alchemy::Admin::Dashboard::Widgets::UsageWidget::Entry
- Defined in:
- app/components/alchemy/admin/dashboard/widgets/usage_widget.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#draft_count ⇒ Object
readonly
Returns the value of attribute draft_count.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#public_count ⇒ Object
readonly
Returns the value of attribute public_count.
Instance Method Summary collapse
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition
6 7 8 |
# File 'app/components/alchemy/admin/dashboard/widgets/usage_widget.rb', line 6 def definition @definition end |
#draft_count ⇒ Object (readonly)
Returns the value of attribute draft_count
6 7 8 |
# File 'app/components/alchemy/admin/dashboard/widgets/usage_widget.rb', line 6 def draft_count @draft_count end |
#name ⇒ Object (readonly)
Returns the value of attribute name
6 7 8 |
# File 'app/components/alchemy/admin/dashboard/widgets/usage_widget.rb', line 6 def name @name end |
#public_count ⇒ Object (readonly)
Returns the value of attribute public_count
6 7 8 |
# File 'app/components/alchemy/admin/dashboard/widgets/usage_widget.rb', line 6 def public_count @public_count end |
Instance Method Details
#total ⇒ Object
7 |
# File 'app/components/alchemy/admin/dashboard/widgets/usage_widget.rb', line 7 def total = public_count + draft_count |