Class: Pageflow::Admin::Tab Private

Inherits:
Object
  • Object
show all
Defined in:
lib/pageflow/admin/tab.rb

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#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]
  @required_account_role = options[:required_account_role]
  @admin_only = options[:admin_only]
  @resource = resource
end

Instance Attribute Details

#componentObject (readonly)

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.



5
6
7
# File 'lib/pageflow/admin/tab.rb', line 5

def component
  @component
end

#nameObject (readonly)

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.



5
6
7
# File 'lib/pageflow/admin/tab.rb', line 5

def name
  @name
end

#required_account_roleObject (readonly)

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.



5
6
7
# File 'lib/pageflow/admin/tab.rb', line 5

def 
  @required_account_role
end

#required_roleObject (readonly)

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.



5
6
7
# File 'lib/pageflow/admin/tab.rb', line 5

def required_role
  @required_role
end

#resourceObject (readonly)

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.



5
6
7
# File 'lib/pageflow/admin/tab.rb', line 5

def resource
  @resource
end

Instance Method Details

#admin_only?Boolean

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:

  • (Boolean)


16
17
18
# File 'lib/pageflow/admin/tab.rb', line 16

def admin_only?
  @admin_only
end