Class: Pageflow::Admin::Tab Private
- Inherits:
-
Object
- Object
- Pageflow::Admin::Tab
- 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
- #component ⇒ Object readonly private
- #name ⇒ Object readonly private
- #required_account_role ⇒ Object readonly private
- #required_role ⇒ Object readonly private
- #resource ⇒ Object readonly private
Instance Method Summary collapse
- #admin_only? ⇒ Boolean private
-
#initialize(options, resource = nil) ⇒ Tab
constructor
private
A new instance of Tab.
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(, resource = nil) @name = [:name] @component = [:component] @required_role = [:required_role] @required_account_role = [:required_account_role] @admin_only = [:admin_only] @resource = resource end |
Instance Attribute Details
#component ⇒ Object (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 |
#name ⇒ Object (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_role ⇒ Object (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 @required_account_role end |
#required_role ⇒ Object (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 |
#resource ⇒ Object (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.
16 17 18 |
# File 'lib/pageflow/admin/tab.rb', line 16 def admin_only? @admin_only end |