Sha256: c230aeb423974d651f4263221fe6554cb2540a0711674167e801d1751ca0804a

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

module AdminCore
  module ViewObject
    class SidebarDropdown
      # @param name [String]
      # @param links [Array<SidebarLink, SidebarResourceLink>]
      def initialize(name, links)
        @name = name
        @links = links
      end

      # @note Implements SidebarDropdown flow type
      def to_hash
        {
          displayName: @name,
          links: @links,
          type: 'dropdown'
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
admin_core-0.0.3 lib/admin_core/view_object/sidebar_dropdown.rb
admin_core-0.0.2 lib/admin_core/view_object/sidebar_dropdown.rb
admin_core-0.0.1 lib/admin_core/view_object/sidebar_dropdown.rb