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.3.1.pre.3 lib/avo/menu/dashboard.rb
avo-2.3.1.pre.2 lib/avo/menu/dashboard.rb
avo-2.3.1.pre.1 lib/avo/menu/dashboard.rb
avo-2.3.0 lib/avo/menu/dashboard.rb
avo-2.2.2 lib/avo/menu/dashboard.rb