Class: UffizziCore::Project::ClusterContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, project, user_access_module, cluster, params) ⇒ ClusterContext

Returns a new instance of ClusterContext.



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

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

Instance Attribute Details

#clusterObject (readonly)

Returns the value of attribute cluster.



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

def cluster
  @cluster
end

#paramsObject (readonly)

Returns the value of attribute params.



4
5
6
# File 'app/contexts/uffizzi_core/project/cluster_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/cluster_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/cluster_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/cluster_context.rb', line 4

def user_access_module
  @user_access_module
end