Class: StoreAgent::Superuser
Overview
スーパーユーザーは全オブジェクトに対して全権限を持つ
super_user = StoreAgent::Superuser.new
super_user.workspace("ws").file("file.txt").create
Instance Attribute Summary
Attributes inherited from User
Instance Method Summary collapse
-
#initialize ⇒ Superuser
constructor
A new instance of Superuser.
-
#super_user? ⇒ Boolean
:nodoc:.
Methods inherited from User
#guest?, #identifier, #identifier_array, #workspace
Methods included from Validator
#validates_to_be_excluded_slash!, #validates_to_be_not_guest_identifier!, #validates_to_be_not_nil_value!, #validates_to_be_not_superuser_identifier!, #validates_to_be_string_or_symbol!
Constructor Details
#initialize ⇒ Superuser
Returns a new instance of Superuser.
90 91 92 |
# File 'lib/store_agent/user.rb', line 90 def initialize(*) @identifiers = [StoreAgent.config.superuser_identifier] end |
Instance Method Details
#super_user? ⇒ Boolean
:nodoc:
94 95 96 |
# File 'lib/store_agent/user.rb', line 94 def super_user? # :nodoc: true end |