Class: UffizziCore::ProjectContext

Inherits:
Object
  • Object
show all
Defined in:
app/contexts/uffizzi_core/project_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, user_access_module, project, params) ⇒ ProjectContext

Returns a new instance of ProjectContext.



6
7
8
9
10
11
12
# File 'app/contexts/uffizzi_core/project_context.rb', line 6

def initialize(user, user_access_module, project, params)
  @user = user
  @user_access_module = user_access_module
  @account = user.
  @project = project
  @params = params
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



4
5
6
# File 'app/contexts/uffizzi_core/project_context.rb', line 4

def 
  @account
end

#paramsObject (readonly)

Returns the value of attribute params.



4
5
6
# File 'app/contexts/uffizzi_core/project_context.rb', line 4

def params
  @params
end

#projectObject (readonly)

Returns the value of attribute project.



4
5
6
# File 'app/contexts/uffizzi_core/project_context.rb', line 4

def project
  @project
end

#userObject (readonly)

Returns the value of attribute user.



4
5
6
# File 'app/contexts/uffizzi_core/project_context.rb', line 4

def user
  @user
end

#user_access_moduleObject (readonly)

Returns the value of attribute user_access_module.



4
5
6
# File 'app/contexts/uffizzi_core/project_context.rb', line 4

def user_access_module
  @user_access_module
end