Class: JiraConnectSubscriptions::BaseService

Inherits:
BaseService
  • Object
show all
Defined in:
app/services/jira_connect_subscriptions/base_service.rb

Direct Known Subclasses

CreateService

Instance Attribute Summary collapse

Attributes inherited from BaseService

#project

Instance Method Summary collapse

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Constructor Details

#initialize(jira_connect_installation, user = nil, params = {}) ⇒ BaseService

Returns a new instance of BaseService.



7
8
9
10
11
# File 'app/services/jira_connect_subscriptions/base_service.rb', line 7

def initialize(jira_connect_installation, user = nil, params = {})
  @jira_connect_installation = jira_connect_installation
  @current_user = user
  @params = params.dup
end

Instance Attribute Details

#current_userObject

Returns the value of attribute current_user.



5
6
7
# File 'app/services/jira_connect_subscriptions/base_service.rb', line 5

def current_user
  @current_user
end

#jira_connect_installationObject

Returns the value of attribute jira_connect_installation.



5
6
7
# File 'app/services/jira_connect_subscriptions/base_service.rb', line 5

def jira_connect_installation
  @jira_connect_installation
end

#paramsObject

Returns the value of attribute params.



5
6
7
# File 'app/services/jira_connect_subscriptions/base_service.rb', line 5

def params
  @params
end