Sha256: 4f4896fd5f7d80af9837325900e85697de1abf923d21abf054eb87f90f710a8e

Contents?: true

Size: 329 Bytes

Versions: 25

Compression:

Stored size: 329 Bytes

Contents

class Avo::Menu::Dashboard < Avo::Menu::BaseItem
  extend Dry::Initializer

  option :dashboard

  def parsed_dashboard
    dashboard_by_id || dashboard_by_name
  end

  def dashboard_by_name
    Avo::App.get_dashboard_by_name dashboard.to_s
  end

  def dashboard_by_id
    Avo::App.get_dashboard_by_id dashboard.to_s
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
avo-2.8.0 lib/avo/menu/dashboard.rb
avo-2.7.1.pre.1 lib/avo/menu/dashboard.rb
avo-2.7.0 lib/avo/menu/dashboard.rb
avo-2.6.1.pre.2 lib/avo/menu/dashboard.rb
avo-2.6.1.pre.1 lib/avo/menu/dashboard.rb
avo-2.6.0 lib/avo/menu/dashboard.rb
avo-2.5.2.pre.7 lib/avo/menu/dashboard.rb
avo-2.5.2.pre.6 lib/avo/menu/dashboard.rb
avo-2.5.2.pre.5 lib/avo/menu/dashboard.rb
avo-2.5.2.pre.4 lib/avo/menu/dashboard.rb
avo-2.5.2.pre.3 lib/avo/menu/dashboard.rb
avo-2.5.2.pre.2 lib/avo/menu/dashboard.rb
avo-2.5.2.pre.1 lib/avo/menu/dashboard.rb
avo-2.5.1 lib/avo/menu/dashboard.rb
avo-2.5.0 lib/avo/menu/dashboard.rb
avo-2.4.1 lib/avo/menu/dashboard.rb
avo-2.4.0 lib/avo/menu/dashboard.rb
avo-2.3.1.pre.6 lib/avo/menu/dashboard.rb
avo-2.3.1.pre.5 lib/avo/menu/dashboard.rb
avo-2.3.1.pre.4 lib/avo/menu/dashboard.rb