Class: Stratagem::Configuration::AuthAuth
- Defined in:
- lib/stratagem/configuration/auth_auth.rb
Instance Attribute Summary collapse
-
#authentication_parameters ⇒ Object
Returns the value of attribute authentication_parameters.
-
#authorized_to_modify_others_data ⇒ Object
Returns the value of attribute authorized_to_modify_others_data.
-
#authorized_to_upload_files ⇒ Object
Returns the value of attribute authorized_to_upload_files.
-
#authorized_to_view_others_data ⇒ Object
Returns the value of attribute authorized_to_view_others_data.
-
#model ⇒ Object
Returns the value of attribute model.
Instance Method Summary collapse
- #credentials(authentication_parameters) ⇒ Object
-
#initialize ⇒ AuthAuth
constructor
A new instance of AuthAuth.
Constructor Details
#initialize ⇒ AuthAuth
Returns a new instance of AuthAuth.
6 7 8 9 10 11 |
# File 'lib/stratagem/configuration/auth_auth.rb', line 6 def initialize self. = true self. = false self. = true self.model = 'User' end |
Instance Attribute Details
#authentication_parameters ⇒ Object
Returns the value of attribute authentication_parameters.
4 5 6 |
# File 'lib/stratagem/configuration/auth_auth.rb', line 4 def authentication_parameters @authentication_parameters end |
#authorized_to_modify_others_data ⇒ Object
Returns the value of attribute authorized_to_modify_others_data.
4 5 6 |
# File 'lib/stratagem/configuration/auth_auth.rb', line 4 def @authorized_to_modify_others_data end |
#authorized_to_upload_files ⇒ Object
Returns the value of attribute authorized_to_upload_files.
4 5 6 |
# File 'lib/stratagem/configuration/auth_auth.rb', line 4 def @authorized_to_upload_files end |
#authorized_to_view_others_data ⇒ Object
Returns the value of attribute authorized_to_view_others_data.
4 5 6 |
# File 'lib/stratagem/configuration/auth_auth.rb', line 4 def @authorized_to_view_others_data end |
#model ⇒ Object
Returns the value of attribute model.
4 5 6 |
# File 'lib/stratagem/configuration/auth_auth.rb', line 4 def model @model end |
Instance Method Details
#credentials(authentication_parameters) ⇒ Object
13 14 15 |
# File 'lib/stratagem/configuration/auth_auth.rb', line 13 def credentials(authentication_parameters) self.authentication_parameters = authentication_parameters end |