Method: Pageflow::Admin::Tab#initialize

Defined in:
lib/pageflow/admin/tab.rb

#initialize(options, resource = nil) ⇒ Tab

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Tab.



7
8
9
10
11
12
13
14
# File 'lib/pageflow/admin/tab.rb', line 7

def initialize(options, resource = nil)
  @name = options[:name]
  @component = options[:component]
  @required_role = options[:required_role]
   = options[:required_account_role]
  @admin_only = options[:admin_only]
  @resource = resource
end