Class: Stratagem::Configuration::AuthAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/stratagem/configuration/auth_auth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAuthAuth

Returns a new instance of AuthAuth.



6
7
8
9
10
11
# File 'lib/stratagem/configuration/auth_auth.rb', line 6

def initialize
  self.authorized_to_view_others_data = true
  self.authorized_to_modify_others_data = false
  self.authorized_to_upload_files = true
  self.model = 'User'
end

Instance Attribute Details

#authentication_parametersObject

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_dataObject

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
  @authorized_to_modify_others_data
end

#authorized_to_upload_filesObject

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
  @authorized_to_upload_files
end

#authorized_to_view_others_dataObject

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
  @authorized_to_view_others_data
end

#modelObject

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