Class: Alchemy::Admin::Dashboard::Widgets::UsageWidget::Entry

Inherits:
Data
  • Object
show all
Defined in:
app/components/alchemy/admin/dashboard/widgets/usage_widget.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#definitionObject (readonly)

Returns the value of attribute definition

Returns:

  • (Object)

    the current value of definition



6
7
8
# File 'app/components/alchemy/admin/dashboard/widgets/usage_widget.rb', line 6

def definition
  @definition
end

#draft_countObject (readonly)

Returns the value of attribute draft_count

Returns:

  • (Object)

    the current value of draft_count



6
7
8
# File 'app/components/alchemy/admin/dashboard/widgets/usage_widget.rb', line 6

def draft_count
  @draft_count
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'app/components/alchemy/admin/dashboard/widgets/usage_widget.rb', line 6

def name
  @name
end

#public_countObject (readonly)

Returns the value of attribute public_count

Returns:

  • (Object)

    the current value of 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

#totalObject



7
# File 'app/components/alchemy/admin/dashboard/widgets/usage_widget.rb', line 7

def total = public_count + draft_count